Sha256: 9cf5ba930e6b508b5df71072e887aecb16f6d774e51b6a2d6f2d3a961c5361e7

Contents?: true

Size: 378 Bytes

Versions: 7

Compression:

Stored size: 378 Bytes

Contents

require 'yaml'
#
# MKIt::Config.load_yml!('samples/mkit.yml')
# MKIt::Config.application.services
#  requires Hash.to_o
module MKIt
  module Config
    extend self
    def load_yml!(path)
      @config = YAML.load(File.new(path).read).to_o
    end
    # 
    def method_missing(name,*args)
      return @config.send(name,*args)
      super.method_missing name
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
mkit-0.5.0 lib/mkit/config/config.rb
mkit-0.4.3 lib/mkit/config/config.rb
mkit-0.4.2 lib/mkit/config/config.rb
mkit-0.4.1 lib/mkit/config/config.rb
mkit-0.4.0 lib/mkit/config/config.rb
mkit-0.3.0 lib/mkit/config/config.rb
mkit-0.2.0 lib/mkit/config/config.rb