Sha256: 823931bb8d92ed1aaead9a88aac70adbf3969c2ddf04b5a656c8ea04fb45ce50

Contents?: true

Size: 661 Bytes

Versions: 4

Compression:

Stored size: 661 Bytes

Contents

#!/usr/bin/env ruby
#--
# Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others.
# All rights reserved.
# See LICENSE.txt for permissions.
#++


module Config

  # Only define datadir if it doesn't already exist.
  unless Config.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
    # modified by packages like RubyGems to handle versioned data
    # directories.
    def Config.datadir(package_name)
      File.join(CONFIG['datadir'], package_name)
    end

  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
shoesgem-0.1430.0 shoes/ruby/lib/rbconfig/datadir.rb
shoesgem-0.1429.0 shoes/ruby/lib/rbconfig/datadir.rb
shoesgem-0.1428.0 shoes/ruby/lib/rbconfig/datadir.rb
shoesgem-0.1426.0 shoes/ruby/lib/rbconfig/datadir.rb