class Gem::TargetRbConfig
def self.for_running_ruby
def self.for_running_ruby new(::RbConfig, nil) end
def self.from_path(rbconfig_path)
def self.from_path(rbconfig_path) namespace = Module.new do |m| # Load the rbconfig.rb file within a new anonymous module to avoid # conflicts with the rbconfig for the running platform. Kernel.load rbconfig_path, m end rbconfig = namespace.const_get(:RbConfig) new(rbconfig, rbconfig_path) end
def [](key)
def [](key) @rbconfig::CONFIG[key] end
def initialize(rbconfig, path)
def initialize(rbconfig, path) @rbconfig = rbconfig @path = path end