class MagicEightball
Public Class Methods
reply(option)
click to toggle source
# File lib/magic_eightball.rb, line 38 def self.reply(option) if @@options.include? option @@eight_ball[option].sample end end
shake()
click to toggle source
# File lib/magic_eightball.rb, line 34 def self.shake @@eight_ball[@@options.sample].sample end