Class: Timing::NaturalTimeLanguage::Expression

Inherits:
Treetop::Runtime::SyntaxNode
  • Object
show all
Defined in:
lib/timing/natural_time_language_interpreters.rb

Instance Method Summary collapse

Instance Method Details

#evaluateObject



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