Class: Mutaconf::Config::JsonParser

Inherits:
Object
  • Object
show all
Defined in:
lib/mutaconf/config.rb

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ JsonParser

Returns a new instance of JsonParser.



97
98
99
# File 'lib/mutaconf/config.rb', line 97

def initialize options = {}
  @options = options
end

Instance Method Details

#parse(raw) ⇒ Object



101
102
103
# File 'lib/mutaconf/config.rb', line 101

def parse raw
  MultiJson.load raw, @options
end