Class: Dealer

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeDealer

Returns a new instance of Dealer.



4
5
6
# File 'lib/mblackjack/dealer.rb', line 4

def initialize
  @dealer_hand = Hand.new
end

Instance Attribute Details

#dealer_handObject

Returns the value of attribute dealer_hand.



2
3
4
# File 'lib/mblackjack/dealer.rb', line 2

def dealer_hand
  @dealer_hand
end