module TrashTalking
Public Instance Methods
generate_quip()
click to toggle source
# File lib/trash_talking.rb, line 18 def generate_quip possible_quips = [ 'You are a good example of why some animals eat their young.', 'Are you even trying?', 'Why dont you slip into something more comfortable? Like a coma.', 'I could say nice things about you, but I would rather tell the truth.' ] possible_quips.sample end
trash_talk_congratulations()
click to toggle source
# File lib/trash_talking.rb, line 6 def trash_talk_congratulations system("say 'Congratulations. We are all a little bit dumber for having watched you play.'") end
trash_talk_quip()
click to toggle source
# File lib/trash_talking.rb, line 14 def trash_talk_quip system("say #{generate_quip}") end
trash_talk_quit()
click to toggle source
# File lib/trash_talking.rb, line 10 def trash_talk_quit system("say 'Your parents were right, you are a quitter.'") end
trash_talk_too_short()
click to toggle source
# File lib/trash_talking.rb, line 2 def trash_talk_too_short system("say 'Your guess was too small, like your brain.'") end