Module: MKIt::Config

Extended by:
Config
Included in:
Config
Defined in:
lib/mkit/config/config.rb

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(name, *args) ⇒ Object



13
14
15
16
# File 'lib/mkit/config/config.rb', line 13

def method_missing(name,*args)
  return @config.send(name,*args)
  super.method_missing name
end

Instance Method Details

#load_yml!(path) ⇒ Object



9
10
11
# File 'lib/mkit/config/config.rb', line 9

def load_yml!(path)
  @config = YAML.load(File.new(path).read).to_o
end