class Toolchain
Attributes
toolchain[R]
Public Class Methods
new(toolchain_file)
click to toggle source
# File lib/cxxproject/toolchain/toolchain.rb, line 7 def initialize(toolchain_file) @toolchain = YAML::load(File.open(toolchain_file)) if @toolchain.base @based_on = @toolchain.base else @based_on = "base" end basechain = YAML::load(File.open(File.join(File.dirname(__FILE__),"#{@based_on}.json"))) @toolchain = basechain.recursive_merge(@toolchain) end
Public Instance Methods
method_missing(m, *args, &block)
click to toggle source
Calls superclass method
# File lib/cxxproject/toolchain/toolchain.rb, line 18 def method_missing(m, *args, &block) if @toolchain[m.to_s] self.class.send(:define_method, m) { @toolchain[m.to_s] } @toolchain[m.to_s] else return super end end