Class: Dddr::Serializer

Inherits:
Object
  • Object
show all
Defined in:
lib/dddr.rb

Instance Method Summary collapse

Constructor Details

#initialize(engine) ⇒ Serializer

Returns a new instance of Serializer.



34
35
36
# File 'lib/dddr.rb', line 34

def initialize(engine)
  @engine = engine
end

Instance Method Details

#dump(obj) ⇒ Object



38
39
40
# File 'lib/dddr.rb', line 38

def dump(obj)
    @engine.dump(obj)
end

#load(obj) ⇒ Object



42
43
44
# File 'lib/dddr.rb', line 42

def load(obj)
    @engine.load(obj)
end