Class: Dddr::Serializer
- Inherits:
-
Object
- Object
- Dddr::Serializer
- Defined in:
- lib/dddr.rb
Instance Method Summary collapse
- #dump(obj) ⇒ Object
-
#initialize(engine) ⇒ Serializer
constructor
A new instance of Serializer.
- #load(obj) ⇒ Object
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 |