Class: Brigitte::Deck
- Inherits:
-
Object
- Object
- Brigitte::Deck
- Defined in:
- lib/brigitte/deck.rb
Overview
A Deck generates and shuffles all cards except Joker. Joker is not used in Brigitte
Constant Summary collapse
- SIGNS =
%w[♣ ♦ ♥ ♠].freeze
- PREFIX =
%w[2 3 4 5 6 7 8 9 10 J Q K A].freeze
Instance Attribute Summary collapse
-
#cards ⇒ Object
Returns the value of attribute cards.
Instance Method Summary collapse
-
#initialize ⇒ Deck
constructor
A new instance of Deck.
Constructor Details
Instance Attribute Details
#cards ⇒ Object
Returns the value of attribute cards.
8 9 10 |
# File 'lib/brigitte/deck.rb', line 8 def cards @cards end |