Class: Player
- Inherits:
-
Object
- Object
- Player
- Defined in:
- lib/player.rb
Instance Attribute Summary collapse
-
#marker ⇒ Object
readonly
Returns the value of attribute marker.
Instance Method Summary collapse
-
#initialize(selection) ⇒ Player
constructor
A new instance of Player.
Constructor Details
#initialize(selection) ⇒ Player
Returns a new instance of Player.
5 6 7 |
# File 'lib/player.rb', line 5 def initialize(selection) @marker = selection end |
Instance Attribute Details
#marker ⇒ Object (readonly)
Returns the value of attribute marker.
3 4 5 |
# File 'lib/player.rb', line 3 def marker @marker end |