module Config

Public Class Methods

datadir(package_name) click to toggle source

Return the path to the data directory associated with the given library/package name. Normally this is just

"#{Config::CONFIG['datadir']}/#{name}"

but may be modified by tools like RubyGems to handle versioned data directories.

# File lib/more/facets/rbconfig.rb, line 40
def self.datadir(package_name)
  File.join(CONFIG['datadir'], package_name)
end
inspect() click to toggle source
# File lib/more/facets/rbconfig.rb, line 26
def self.inspect
  CONFIG.inspect
end