Class: Timing::NaturalTimeLanguage::BeginningEnd

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

Instance Method Summary collapse

Instance Method Details

#beginning?Boolean

Returns:

  • (Boolean)


143
144
145
# File 'lib/timing/natural_time_language_interpreters.rb', line 143

def beginning?
  direction.text_value.downcase == 'beginning'
end

#end?Boolean

Returns:

  • (Boolean)


147
148
149
# File 'lib/timing/natural_time_language_interpreters.rb', line 147

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