Class: Yan::Quote

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
lib/yan.rb

Overview

The Quote class will be a singleton. When it gets a ‘run` message, it will return a pun from a Stephen Yan _Wok With Yan_ apron.

Constant Summary collapse

PUNS =
[
  "Wok the heck",
  "Wok goes in, must come out",
  "Wok and roll",
  "Wok-a-doodle-doo",
  "101 ways to wok your dog",
  "Wok this way",
  "Danger, men at wok",
  "Wok around the clock",
  "You are wok you eat",
  "Wok goes up must come down",
  "Wok's new, Pussycat?",
  "Raiders of the lost wok",
  "Mook Wok",
  "Jailhouse Wok",
  "Over wok, under pay",
  "Wokking my baby back home",
  "Wokkey night in Canada",
  "Stuck between a wok and a hard place",
  "Eat your wok out",
  "Superior wokmanship",
  "Wok on the moon",
  "Wok on the wild side",
  "All wokked up",
  "Wok's next",
  "Wok up a storm",
  "Wok-a my baby",
  "The Whacky Wokker",
]

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.runObject

Class method to make an instance of quote and run it.



43
44
45
46
47
# File 'lib/yan.rb', line 43

def self.run
  quote = new
  
  quote.run
end

Instance Method Details

#runObject

Actually returns the pun



50
51
52
# File 'lib/yan.rb', line 50

def run
  Yan::Quote::PUNS.sample
end