Class: Player

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#markerObject (readonly)

Returns the value of attribute marker.



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

def marker
  @marker
end