Class: TarotReader

Inherits:
Object
  • Object
show all
Defined in:
lib/tarot_reader.rb

Instance Method Summary collapse

Constructor Details

#initializeTarotReader

Returns a new instance of TarotReader.



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

def initialize
    @deck = Deck.new
end

Instance Method Details

#lay_cards(how_many = 10) ⇒ Object



7
8
9
10
11
12
13
14
15
# File 'lib/tarot_reader.rb', line 7

def lay_cards(how_many=10)
  deck = Deck.new(DeckThemes::RIDER_WAITE)
  cards = []
  how_many.times {
    cards << deck.get_cards.sample
  }

  cards
end