Module: Fish0::Concerns::Equalable
- Included in:
- Model
- Defined in:
- lib/fish0/concerns/equalable.rb
Instance Method Summary collapse
- #==(other) ⇒ Object (also: #eql?)
Instance Method Details
#==(other) ⇒ Object Also known as: eql?
4 5 6 |
# File 'lib/fish0/concerns/equalable.rb', line 4 def ==(other) other.class == self.class && other.attributes == attributes end |