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



19
20
21
# File 'lib/mkit/config/config.rb', line 19

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

Instance Method Details

#config_fileObject



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

def config_file
  @config_file
end

#load_yml!(path) ⇒ Object



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

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