Class: MockDecoder

Inherits:
Object
  • Object
show all
Defined in:
lib/vendor/multi_json/spec/helper.rb

Class Method Summary collapse

Class Method Details

.dump(string) ⇒ Object


30
31
32
# File 'lib/vendor/multi_json/spec/helper.rb', line 30

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

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


26
27
28
# File 'lib/vendor/multi_json/spec/helper.rb', line 26

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