Sha256: 636a6547f68c09c06c5f3f238b368e1b0e68bc17b14c4cc23445834f9219b4b8
Contents?: true
Size: 256 Bytes
Versions: 1
Compression:
Stored size: 256 Bytes
Contents
module Podos ALL_CARDS = [] Card::SUITS.each do |suit| Card::RANKS.each do |rank| ALL_CARDS << Card.new(rank, suit) end end class FullDeck < Deck def initialize super ALL_CARDS.clone self.shuffle! end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
podos-0.1.1 | lib/podos/full_deck.rb |