Class: Samgem::PlayingCard

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

Class Method Summary collapse

Class Method Details

.drawObject



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