Sha256: 11609b9d5ca8cc7538fb13e4574a4eba9beb6febc4441625c82a030b6c60882a

Contents?: true

Size: 1.02 KB

Versions: 17

Compression:

Stored size: 1.02 KB

Contents

# = Ruby Configuration Extensions
#
# An extended rendition of the Ruby's standard Config module.
#
# == Authors
#
# * Thomas Sawyer
#
# == Copying
#
# Copyright (c) 2006 Thomas Sawyer
#
# Ruby License
#
# This module is free software. You may use, modify, and/or redistribute this
# software under the same terms as Ruby.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE.

require 'rbconfig'

module Config

  def self.inspect
    CONFIG.inspect
  end

  # In case rubygems has already defined it.
  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

17 entries across 17 versions & 2 rubygems

Version Path
facets-2.8.4 lib/more/facets/rbconfig.rb
facets-2.8.3 lib/more/facets/rbconfig.rb
facets-2.8.2 lib/more/facets/rbconfig.rb
facets-2.8.1 lib/more/facets/rbconfig.rb
facets-2.8.0 lib/more/facets/rbconfig.rb
facets-2.7.0 lib/more/facets/rbconfig.rb
facets-2.6.0 lib/lore/facets/rbconfig.rb
facets-2.4.0 lib/facets/rbconfig.rb
facets-2.4.1 lib/facets/rbconfig.rb
facets-2.4.4 lib/lore/facets/rbconfig.rb
facets-2.4.3 lib/lore/facets/rbconfig.rb
facets-2.4.2 lib/lore/facets/rbconfig.rb
facets-2.5.0 lib/lore/facets/rbconfig.rb
facets-2.4.5 lib/lore/facets/rbconfig.rb
facets-2.5.1 lib/lore/facets/rbconfig.rb
facets-2.5.2 lib/lore/facets/rbconfig.rb
mack-facets-0.8.2 lib/gems/facets-2.4.5/lib/lore/facets/rbconfig.rb