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.



3
4
5
# File 'lib/deck/hand.rb', line 3

def initialize(options = {})
  @cards = []
end

Instance Method Details

#inspectObject



7
8
9
# File 'lib/deck/hand.rb', line 7

def inspect
  @cards.inspect
end