Class: Magic8Ball

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

Overview

The main Magic8Ball driver

Class Method Summary collapse

Class Method Details

.answer(question = 'May shoud I try?') ⇒ Object

Answer any question

Exemple:

>> Magic8Ball.answer("Am I smart?")
>> Maybe?!

Arguments:

question: (String)


12
13
14
15
# File 'lib/magic8ball.rb', line 12

def self.answer(question = 'May shoud I try?')
  a = Answerator.new
  a.answer(question)
end