Class: Timing::NaturalTimeLanguage::Expression
- Inherits:
-
Treetop::Runtime::SyntaxNode
- Object
- Treetop::Runtime::SyntaxNode
- Timing::NaturalTimeLanguage::Expression
- Defined in:
- lib/timing/natural_time_language_interpreters.rb
Instance Method Summary collapse
Instance Method Details
#evaluate ⇒ Object
27 28 29 |
# File 'lib/timing/natural_time_language_interpreters.rb', line 27 def evaluate moment.evaluate zone_info.empty? ? nil : zone_info.value end |