Class: Hand
Constant Summary
Constants inherited from Deck
Deck::RANKS, Deck::SUITS, Deck::VERSION
Instance Attribute Summary
Attributes inherited from Deck
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Hand
constructor
A new instance of Hand.
- #inspect ⇒ Object
Methods inherited from Deck
#<<, #draw, #each, #shuffle!, #size
Constructor Details
#initialize(options = {}) ⇒ Hand
Returns a new instance of Hand.
3 4 5 |
# File 'lib/deck/hand.rb', line 3 def initialize( = {}) @cards = [] end |
Instance Method Details
#inspect ⇒ Object
7 8 9 |
# File 'lib/deck/hand.rb', line 7 def inspect @cards.inspect end |