Sha256: 5439ae6f9b54854b20f28953d456d5b14175f195d0509ca527dbb5f17623535b

Contents?: true

Size: 432 Bytes

Versions: 45

Compression:

Stored size: 432 Bytes

Contents

module Neo4j
  # To support Ruby marshaling
  module EntityMarshal
    def marshal_dump
      marshal_instance_variables.map(&method(:instance_variable_get))
    end

    def marshal_load(array)
      marshal_instance_variables.zip(array).each do |var, value|
        instance_variable_set(var, value)
      end
    end

    private

    def marshal_instance_variables
      self.class::MARSHAL_INSTANCE_VARIABLES
    end
  end
end

Version data entries

45 entries across 45 versions & 1 rubygems

Version Path
neo4j-core-8.1.4 lib/neo4j/entity_marshal.rb
neo4j-core-8.1.3 lib/neo4j/entity_marshal.rb
neo4j-core-8.1.2 lib/neo4j/entity_marshal.rb
neo4j-core-8.1.1 lib/neo4j/entity_marshal.rb
neo4j-core-8.1.0 lib/neo4j/entity_marshal.rb
neo4j-core-8.0.4 lib/neo4j/entity_marshal.rb
neo4j-core-8.0.3 lib/neo4j/entity_marshal.rb
neo4j-core-8.0.2 lib/neo4j/entity_marshal.rb
neo4j-core-8.0.1 lib/neo4j/entity_marshal.rb
neo4j-core-7.2.4 lib/neo4j/entity_marshal.rb
neo4j-core-8.0.0 lib/neo4j/entity_marshal.rb
neo4j-core-7.2.3 lib/neo4j/entity_marshal.rb
neo4j-core-7.2.2 lib/neo4j/entity_marshal.rb
neo4j-core-7.2.1 lib/neo4j/entity_marshal.rb
neo4j-core-7.2.0 lib/neo4j/entity_marshal.rb
neo4j-core-7.1.2 lib/neo4j/entity_marshal.rb
neo4j-core-7.0.9 lib/neo4j/entity_marshal.rb
neo4j-core-7.1.1 lib/neo4j/entity_marshal.rb
neo4j-core-7.1.0 lib/neo4j/entity_marshal.rb
neo4j-core-7.0.8 lib/neo4j/entity_marshal.rb