| Module | RbConfig |
| In: |
Return the path to the data directory associated with the named package. If the package is loaded as a gem, return the gem specific data directory. Otherwise return a path to the share area as define by "#{ConfigMap[:datadir]}/#{package_name}".
# File lib/rubygems.rb, line 1320
1320: def RbConfig.datadir(package_name)
1321: warn "#{Gem.location_of_caller.join ':'}:Warning: " \
1322: "RbConfig.datadir is deprecated and will be removed on or after " \
1323: "August 2011. " \
1324: "Use Gem::datadir."
1325:
1326: require 'rbconfig/datadir'
1327:
1328: Gem.datadir(package_name) ||
1329: File.join(Gem::ConfigMap[:datadir], package_name)
1330: end