Sha256: f2c801ce2dd936b700cb5102a0c87b944818a15c6104056feaab4f4dfd1c1447

Contents?: true

Size: 430 Bytes

Versions: 14

Compression:

Stored size: 430 Bytes

Contents

module Config

  unless self.respond_to?(:datadir)

    # 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.

    def self.datadir(package_name)
      File.join(CONFIG['datadir'], package_name)
    end

  end

end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
facets-1.4.2 lib/facets/core/config/datadir.rb
facets-1.4.3 lib/facets/core/config/datadir.rb
facets-1.4.4 lib/facets/core/config/datadir.rb
facets-1.4.5 lib/facets/core/config/datadir.rb
facets-1.7.0 lib/facets/core/config/datadir.rb
facets-1.7.30 lib/facets/core/config/datadir.rb
facets-1.7.38 lib/facets/core/config/datadir.rb
facets-1.7.46 lib/facets/core/config/datadir.rb
facets-1.8.0 lib/facets/core/config/datadir.rb
facets-1.8.20 lib/facets/core/config/datadir.rb
facets-1.8.49 lib/facets/core/config/datadir.rb
facets-1.8.51 lib/facets/core/config/datadir.rb
facets-1.8.54 lib/facets/core/config/datadir.rb
facets-1.8.8 lib/facets/core/config/datadir.rb