Class: Mutaconf::Config::JsonParser
- Inherits:
-
Object
- Object
- Mutaconf::Config::JsonParser
- Defined in:
- lib/mutaconf/config.rb
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ JsonParser
constructor
A new instance of JsonParser.
- #parse(raw) ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ JsonParser
Returns a new instance of JsonParser.
97 98 99 |
# File 'lib/mutaconf/config.rb', line 97 def initialize = {} @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 |