Class: SentenceInterpreter

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

Class Method Summary collapse

Class Method Details

.interpret(sentence = '') ⇒ Object



5
6
7
# File 'lib/sentence_interpreter.rb', line 5

def self.interpret(sentence='')
  Phrases.new(sentence)
end

.IOObject

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