Sha256: b3a49939a3cb350a3141e7be682d7ac9e39c08772b736cab17a11f758a5cbaa1

Contents?: true

Size: 218 Bytes

Versions: 3

Compression:

Stored size: 218 Bytes

Contents

# frozen_string_literal: true

class Person
  attr_reader :name, :age

  def initialize(name)
    @name = name
  end

  def ==(other)
    return false unless other.class == self.class

    other.name == name
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
arstotzka-1.6.2 spec/support/models/person.rb
arstotzka-1.6.1 spec/support/models/person.rb
arstotzka-1.6.0 spec/support/models/person.rb