module Neography::Equal
This mixin is used for both nodes and relationships to decide if two entities are equal or not.¶ ↑
Public Instance Methods
==(o)
click to toggle source
# File lib/neography/equal.rb, line 15 def ==(o) eql?(o) end
eql?(o)
click to toggle source
# File lib/neography/equal.rb, line 10 def eql?(o) return false unless o.respond_to?(:neo_id) o.neo_id == neo_id end
equal?(o)
click to toggle source
# File lib/neography/equal.rb, line 6 def equal?(o) eql?(o) end