Class: RubyHoldem::Round::Player
- Inherits:
-
SimpleDelegator
- Object
- SimpleDelegator
- RubyHoldem::Round::Player
- Defined in:
- lib/ruby_holdem/round/player.rb
Instance Attribute Summary collapse
-
#current_bet_amount ⇒ Object
Returns the value of attribute current_bet_amount.
-
#hole_cards ⇒ Object
Returns the value of attribute hole_cards.
Instance Method Summary collapse
-
#initialize(player) ⇒ Player
constructor
A new instance of Player.
Constructor Details
#initialize(player) ⇒ Player
6 7 8 9 10 |
# File 'lib/ruby_holdem/round/player.rb', line 6 def initialize(player) @hole_cards = [] @current_bet_amount = 0 super(player) end |
Instance Attribute Details
#current_bet_amount ⇒ Object
Returns the value of attribute current_bet_amount.
4 5 6 |
# File 'lib/ruby_holdem/round/player.rb', line 4 def current_bet_amount @current_bet_amount end |
#hole_cards ⇒ Object
Returns the value of attribute hole_cards.
4 5 6 |
# File 'lib/ruby_holdem/round/player.rb', line 4 def hole_cards @hole_cards end |