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

Version Path
optional-0.0.7 spec/support/cat.rb
optional-0.0.6 spec/support/cat.rb
optional-0.0.5 spec/support/cat.rb
optional-0.0.4 spec/support/cat.rb
optional-0.0.3 spec/support/cat.rb
optional-0.0.2 spec/support/cat.rb
optional-0.0.1 spec/support/cat.rb