This method is deprecated or moved on the latest stable version.
The last existing version (v1_9_3_392) is shown here.
datadir(package_name)
public
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 1245
def RbConfig.datadir(package_name) # :nodoc:
warn "#{Gem.location_of_caller.join ':'}:Warning: " "RbConfig.datadir is deprecated and will be removed on or after " "August 2011. " "Use Gem::datadir."
require 'rbconfig/datadir'
Gem.datadir(package_name) || File.join(Gem::ConfigMap[:datadir], package_name)
end