Module: Wardrobe::Plugins::Equality::InstanceMethods
- Defined in:
- lib/wardrobe/plugins/equality.rb
Instance Method Summary collapse
Instance Method Details
#==(other) ⇒ Object
9 10 11 12 13 14 |
# File 'lib/wardrobe/plugins/equality.rb', line 9 def ==(other) _attribute_store.all? do |_name, atr| return true unless atr.[:include_in_equality] send(atr.name) == other.send(atr.name) end end |