Class: Polo::Traveler
- Inherits:
-
Object
- Object
- Polo::Traveler
- Defined in:
- lib/polo.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(selects) ⇒ Traveler
constructor
A new instance of Traveler.
- #translate(configuration = Configuration.new) ⇒ Object
Constructor Details
#initialize(selects) ⇒ Traveler
Returns a new instance of Traveler.
79 80 81 |
# File 'lib/polo.rb', line 79 def initialize(selects) @selects = selects end |
Class Method Details
Instance Method Details
#translate(configuration = Configuration.new) ⇒ Object
83 84 85 |
# File 'lib/polo.rb', line 83 def translate(configuration=Configuration.new) Translator.new(@selects, configuration).translate end |