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.
5 6 7 |
# File 'lib/deck/hand.rb', line 5 def initialize( = {}) @cards = [] end |
Instance Method Details
#inspect ⇒ Object
9 10 11 |
# File 'lib/deck/hand.rb', line 9 def inspect @cards.each{|e| e.to_s} end |