Returns:
5 6 7
# File 'lib/toy/equality.rb', line 5 def eql?(other) self.class.eql?(other.class) && attributes == other.attributes end
10 11 12
# File 'lib/toy/equality.rb', line 10 def hash attributes.hash end