Class: Translator::ModApplier
- Defined in:
- lib/natural-date/translator/mod_applier.rb
Instance Attribute Summary
Attributes inherited from Step
Instance Method Summary collapse
Instance Method Details
#map(tokens, reference_date) ⇒ Object
3 4 5 6 7 |
# File 'lib/natural-date/translator/mod_applier.rb', line 3 def map tokens, reference_date tokens .each_with_index .map { |token, index| apply(tokens, token, index) } end |