Module: RbConfig
- Defined in:
- lib/rbconfig/datadir.rb
Overview
– Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others. All rights reserved. See LICENSE.txt for permissions. ++
Class Method Summary collapse
-
.datadir(package_name) ⇒ Object
Return the path to the data directory associated with the named package.
Class Method Details
.datadir(package_name) ⇒ Object
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 “#:datadir/#package_name”.
15 16 17 |
# File 'lib/rbconfig/datadir.rb', line 15 def self.datadir(package_name) File.join(CONFIG['datadir'], package_name) end |