Class: Timing::NaturalTimeLanguage::BeforeFrom

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

Instance Method Summary collapse

Instance Method Details

#before?Boolean

Returns:

  • (Boolean)


163
164
165
# File 'lib/timing/natural_time_language_interpreters.rb', line 163

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

#from?Boolean

Returns:

  • (Boolean)


167
168
169
# File 'lib/timing/natural_time_language_interpreters.rb', line 167

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