In Files

  • rubygems.rb

Methods

Class/Module Index [+]

Quicksearch

RbConfig

Public Class Methods

datadir(package_name) click to toggle source

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 1078
def RbConfig.datadir(package_name)
  Gem.datadir(package_name) ||
    File.join(Gem::ConfigMap[:datadir], package_name)
end