Class: SentenceInterpreter
- Inherits:
-
Object
- Object
- SentenceInterpreter
- Defined in:
- lib/sentence_interpreter.rb
Class Method Summary collapse
- .interpret(sentence = '') ⇒ Object
-
.IO ⇒ Object
Run when this script is called directly.
Class Method Details
.interpret(sentence = '') ⇒ Object
5 6 7 |
# File 'lib/sentence_interpreter.rb', line 5 def self.interpret(sentence='') Phrases.new(sentence) end |
.IO ⇒ Object
Run when this script is called directly
9 10 11 12 |
# File 'lib/sentence_interpreter.rb', line 9 def self.IO # Run when this script is called directly sentence = ARGV.join(" ") puts Phrases.new(sentence) end |