Class: DefaultMarshaller

Inherits:
Object
  • Object
show all
Defined in:
lib/internal/marshallers/default.rb

Instance Method Summary collapse

Instance Method Details

#restore(stream) ⇒ Object



12
13
14
# File 'lib/internal/marshallers/default.rb', line 12

def restore(stream)
  Marshal.restore(stream)
end

#serialize(graph) ⇒ Object



4
5
6
# File 'lib/internal/marshallers/default.rb', line 4

def serialize(graph)
  Marshal.dump(graph)
end

#serialize_to_stream(graph, stream) ⇒ Object



8
9
10
# File 'lib/internal/marshallers/default.rb', line 8

def serialize_to_stream(graph, stream)
  Marshal.dump(graph, stream)
end