lib/mkit/config/config.rb in mkit-0.5.0 vs lib/mkit/config/config.rb in mkit-0.6.0
- old
+ new
@@ -4,15 +4,20 @@
# MKIt::Config.application.services
# requires Hash.to_o
module MKIt
module Config
extend self
+
def load_yml!(path)
+ @config_file = path
@config = YAML.load(File.new(path).read).to_o
end
+
+ def config_file
+ @config_file
+ end
#
def method_missing(name,*args)
return @config.send(name,*args)
- super.method_missing name
end
end
end