Class: Tess::Runner
- Inherits:
-
Object
- Object
- Tess::Runner
- Defined in:
- lib/tess/runner.rb
Instance Attribute Summary collapse
-
#opts ⇒ Object
Returns the value of attribute opts.
Instance Method Summary collapse
-
#initialize ⇒ Runner
constructor
A new instance of Runner.
- #run!(word) ⇒ Object
Constructor Details
#initialize ⇒ Runner
4 5 6 |
# File 'lib/tess/runner.rb', line 4 def initialize @opts = {} end |
Instance Attribute Details
#opts ⇒ Object
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 |