Class: Player

Inherits:
Object
  • Object
show all
Defined in:
lib/bare_gato/player.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(display) ⇒ Player

Returns a new instance of Player.



5
6
7
# File 'lib/bare_gato/player.rb', line 5

def initialize display
  @display = display
end

Instance Attribute Details

#displayObject (readonly)

Returns the value of attribute display.



3
4
5
# File 'lib/bare_gato/player.rb', line 3

def display
  @display
end

Instance Method Details

#==(other) ⇒ Object



9
10
11
# File 'lib/bare_gato/player.rb', line 9

def == other
  other.display == display
end