Class: Timing::NaturalTimeLanguage::LastNext

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

Instance Method Summary collapse

Instance Method Details

#last?Boolean

Returns:

  • (Boolean)


153
154
155
# File 'lib/timing/natural_time_language_interpreters.rb', line 153

def last?
  text_value.downcase == 'last'
end

#next?Boolean

Returns:

  • (Boolean)


157
158
159
# File 'lib/timing/natural_time_language_interpreters.rb', line 157

def next?
  text_value.downcase == 'next'
end