Class: Tess::Runner

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeRunner



4
5
6
# File 'lib/tess/runner.rb', line 4

def initialize
  @opts = {}
end

Instance Attribute Details

#optsObject

Returns the value of attribute opts.



3
4
5
# File 'lib/tess/runner.rb', line 3

def opts
  @opts
end

Instance Method Details

#run!(word) ⇒ Object



8
9
10
11
12
13
14
# File 'lib/tess/runner.rb', line 8

def run!(word)
  #word = gesucht

  puts Tess::Servant.fetch_dict(word) if @opts[:dict].nil? or 
  @opts[:dict]
  puts Tess::Servant.fetch_synonym(word) if @opts[:synonym].nil? or 
  @opts[:synonym]
end