Module: Unparser::Equalizer::Methods
- Defined in:
- lib/unparser/equalizer.rb
Overview
The comparison methods
Instance Method Summary collapse
-
#==(other) ⇒ Boolean
Compare the object with other object for equivalency.
-
#eql?(other) ⇒ Boolean
Compare the object with other object for equality.
Instance Method Details
#==(other) ⇒ Boolean
Compare the object with other object for equivalency
93 94 95 |
# File 'lib/unparser/equalizer.rb', line 93 def ==(other) instance_of?(other.class) && cmp?(__method__, other) end |
#eql?(other) ⇒ Boolean
Compare the object with other object for equality
78 79 80 |
# File 'lib/unparser/equalizer.rb', line 78 def eql?(other) instance_of?(other.class) && cmp?(__method__, other) end |