Class: Timing::NaturalTimeLanguage::DayName

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

Constant Summary collapse

SHORT_NAMES =
['sun', 'mon', 'tue', 'wed', 'thu', 'fri', 'sat']

Instance Method Summary collapse

Instance Method Details

#valueObject



300
301
302
# File 'lib/timing/natural_time_language_interpreters.rb', line 300

def value
  SHORT_NAMES.index text_value[0..2].downcase
end