Class: Cadun::Config
- Inherits:
-
Object
- Object
- Cadun::Config
- Defined in:
- lib/cadun/config.rb
Class Method Summary collapse
Class Method Details
.load_file(path) ⇒ Object
3 4 5 6 7 |
# File 'lib/cadun/config.rb', line 3 def self.load_file(path) (class << self; self; end).instance_eval do YAML::load_file(path)['cadun'].each { |key, value| define_method(key) { value } } end end |