Module: Neo4j::EntityMarshal
- Included in:
- Node, Relationship
- Defined in:
- lib/neo4j/entity_marshal.rb
Overview
To support Ruby marshaling
Instance Method Summary collapse
Instance Method Details
#marshal_dump ⇒ Object
4 5 6 |
# File 'lib/neo4j/entity_marshal.rb', line 4 def marshal_dump marshal_instance_variables.map(&method(:instance_variable_get)) end |
#marshal_load(array) ⇒ Object
8 9 10 11 12 |
# File 'lib/neo4j/entity_marshal.rb', line 8 def marshal_load(array) marshal_instance_variables.zip(array).each do |var, value| instance_variable_set(var, value) end end |