Module: Predicated::Binary::ValueEquality

Included in:
Predicated::Binary
Defined in:
lib/predicated/predicate.rb

Instance Method Summary collapse

Instance Method Details

#==(other) ⇒ Object



67
68
69
70
71
# File 'lib/predicated/predicate.rb', line 67

def ==(other)
  self.class == other.class && 
  self.left == other.left && 
  self.right == other.right
end