Class: Algebrick::Serializers::ToJson

Inherits:
Abstract show all
Defined in:
lib/algebrick/serializers/to_json.rb,
lib/algebrick/serializers2/to_json.rb

Instance Method Summary (collapse)

Methods included from TypeCheck

#Child!, #Child?, #Match!, #Match?, #Type!, #Type?, error

Instance Method Details

- (Object) dump(object, options = {})



24
25
26
# File 'lib/algebrick/serializers/to_json.rb', line 24

def dump(object, options = {})
  MultiJson.dump object
end

- (Object) load(data, options = {})



20
21
22
# File 'lib/algebrick/serializers/to_json.rb', line 20

def load(data, options = {})
  MultiJson.load data
end