Module: MultiJson

Defined in:
lib/dumper/patch.rb

Class Method Summary collapse

Class Method Details

.dump(object) ⇒ Object



10
11
12
# File 'lib/dumper/patch.rb', line 10

def dump(object)
  MultiJson.encode(object)
end

.load(string) ⇒ Object



14
15
16
# File 'lib/dumper/patch.rb', line 14

def load(string)
  MultiJson.decode(string)
end