Class: Samgem::PlayingCard
- Inherits:
-
Object
- Object
- Samgem::PlayingCard
- Defined in:
- lib/samgem.rb
Class Method Summary collapse
Class Method Details
.draw ⇒ Object
15 16 17 18 19 20 |
# File 'lib/samgem.rb', line 15 def self.draw suits = ["Spades", "Diamonds", "Hearts", "Clubs"] cards = ["Ace", "Two", "Three", "Four", "Five", "Six", "Seven", "Eight", "Nine", "Jack", "Queen", "King"] p "#{cards.sample} of #{suits.sample}" end |