Class: Player
- Inherits:
-
Object
- Object
- Player
- Defined in:
- lib/bare_gato/player.rb
Instance Attribute Summary collapse
-
#display ⇒ Object
readonly
Returns the value of attribute display.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(display) ⇒ Player
constructor
A new instance of Player.
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
#display ⇒ Object (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 |