Sha256: fa82e9b94dfc1d2d0730c4a8f288986867f1d937a4784c9e7ac7e8ae1f9e592c
Contents?: true
Size: 291 Bytes
Versions: 7
Compression:
Stored size: 291 Bytes
Contents
class Cat attr_reader :name def initialize(name) @name = name end def == other other.is_a?(Cat) && other.name == name end end class Dog attr_reader :name def initialize(name) @name = name end def == other other.is_a?(Dog) && other.name == name end end
Version data entries
7 entries across 7 versions & 1 rubygems