diff options
Diffstat (limited to 'lib/rbconfig')
-rw-r--r-- | lib/rbconfig/datadir.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/rbconfig/datadir.rb b/lib/rbconfig/datadir.rb index d5493b3b04..74c014e0aa 100644 --- a/lib/rbconfig/datadir.rb +++ b/lib/rbconfig/datadir.rb @@ -5,17 +5,17 @@ #++ -module Config +module RbConfig # Only define datadir if it doesn't already exist. - unless Config.respond_to?(:datadir) + unless RbConfig.respond_to?(:datadir) # 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 + # "#{RbConfig::CONFIG['datadir']}/#{package_name}", but may be # modified by packages like RubyGems to handle versioned data # directories. - def Config.datadir(package_name) + def RbConfig.datadir(package_name) File.join(CONFIG['datadir'], package_name) end |