Class: Magic8Ball
- Inherits:
-
Object
- Object
- Magic8Ball
- Defined in:
- lib/magic8ball.rb
Overview
The main Magic8Ball driver
Class Method Summary collapse
-
.answer(question = 'May shoud I try?') ⇒ Object
Answer any question.
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 |