Sha256: f66ccf821e204d5239734a47073a85bc1b1f948038f0b88df2e38e1b9895684f
Contents?: true
Size: 413 Bytes
Versions: 4
Compression:
Stored size: 413 Bytes
Contents
module Neo4j module Wrapper # == This mixin is used for both nodes and relationships to decide if two entities are equal or not. # module Equal # check that this and the other node is both the same class and has the same node/relationship id. def eql?(other_node) other_node.respond_to?(:neo_id) && neo_id == other_node.neo_id end alias == eql? end end end
Version data entries
4 entries across 4 versions & 1 rubygems