Sha256: 39ac14ec778de5570093a7046be9109db0e816e657c27da4cb65065cd850103a
Contents?: true
Size: 621 Bytes
Versions: 4
Compression:
Stored size: 621 Bytes
Contents
wd = Dir.pwd() metaconfig_dir = File.join(File.dirname(__FILE__), '..') Dir.chdir metaconfig_dir begin require 'setup.rb' require 'rbconfig' config = ConfigTable.new(Config::CONFIG) config.load_standard_entries config.load_script 'metaconfig' config.load_savefile ensure Dir.chdir(wd) end RUBY_SOURCE_DIR = config['ruby-source-path'] RUBY_INCLUDE_DIR = config['ruby-include-path'] USING_CACHED_FILES = config['cached-files'] == 'yes' if __FILE__ == $0 then puts "Using cached files: #{USING_CACHED_FILES}" puts "Ruby source dir: #{RUBY_SOURCE_DIR}" puts "Ruby include dir: #{RUBY_INCLUDE_DIR}" end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
ruby-internal-0.7.2 | ext/ruby_source_dir.rb |
ruby-internal-0.7.1 | ext/ruby_source_dir.rb |
ruby-internal-0.7.0 | ext/ruby_source_dir.rb |
ruby-internal-0.6.0 | ext/ruby_source_dir.rb |