Extended maintenance of Ruby versions 1.8.7 and 1.9.2 ended on July 31, 2014. Read more
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}/#{package_name}”.
# File rubygems.rb, line 1077 def RbConfig.datadir(package_name) Gem.datadir(package_name) || File.join(Gem::ConfigMap[:datadir], package_name) end