t6d / smart_properties

Ruby accessors on steroids
MIT License
177 stars 20 forks source link

Add equality method #56

Closed exterm closed 7 years ago

exterm commented 7 years ago
class Dummy
  property :a
end

Dummy.new(1) == Dummy.new(2)

SmartProperties objects should be equal if they are of the same class and all property values are equal.

This would be most helpful e.g. for tests.

Thank yoyu for considering ;)

exterm commented 7 years ago

duplicate of https://github.com/t6d/smart_properties/issues/41