Module: MockModuleDecoder

Extended by:
MockModuleDecoder
Included in:
MockModuleDecoder
Defined in:
lib/vendor/multi_json/spec/helper.rb

Instance Method Summary collapse

Instance Method Details

#dump(string) ⇒ Object


42
43
44
# File 'lib/vendor/multi_json/spec/helper.rb', line 42

def dump(string)
  '{"abc":"def"}'
end

#load(string, options = {}) ⇒ Object


38
39
40
# File 'lib/vendor/multi_json/spec/helper.rb', line 38

def load(string, options={})
  {'abc' => 'def'}
end