Class: Hand

Inherits:
Deck show all
Defined in:
lib/deck/hand.rb

Constant Summary

Constants inherited from Deck

Deck::RANKS, Deck::SUITS, Deck::VERSION

Instance Attribute Summary

Attributes inherited from Deck

#cards

Instance Method Summary collapse

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(options = {})
  @cards = []
end

Instance Method Details

#inspectObject



9
10
11
# File 'lib/deck/hand.rb', line 9

def inspect
  @cards.each{|e| e.to_s}
end