Class Index [+]

Quicksearch

RbConfig

Public Class Methods

datadir(package_name) click to toggle source

Return the path to the data directory associated with the given package name. Normally this is just “#{RbConfig::CONFIG[‘datadir’]}/#{package_name}”, but may be modified by packages like RubyGems to handle versioned data directories.

    # File lib/rbconfig/datadir.rb, line 15
15:   def self.datadir(package_name)
16:     File.join(CONFIG['datadir'], package_name)
17:   end
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[:datadir]}/#{package_name}”.

      # File lib/rubygems.rb, line 1078
1078: def RbConfig.datadir(package_name)
1079:   Gem.datadir(package_name) ||
1080:     File.join(Gem::ConfigMap[:datadir], package_name)
1081: end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.