Module | Config |
In: |
lib/rbconfig/datadir.rb
lib/rubygems.rb |
Return the path to the data directory associated with the given package name. Normally this is just "#{Config::CONFIG[‘datadir’]}/#{package_name}", but may be modified by packages like RubyGems to handle versioned data directories.
# File lib/rbconfig/datadir.rb, line 19 19: def Config.datadir(package_name) 20: File.join(CONFIG['datadir'], package_name) 21: end