Module: CardDeck
- Defined in:
- lib/card.rb,
lib/deck.rb
Overview
The gem
Defined Under Namespace
Classes: Card, CardError, Deck
Instance Method Summary collapse
-
#Card(num, suit = nil) ⇒ Object
an easier way to generate a card.
Instance Method Details
#Card(num, suit = nil) ⇒ Object
an easier way to generate a card
3 4 5 |
# File 'lib/card.rb', line 3 def Card(num, suit=nil) # an easier way to generate a card Card.new num, suit end |