Class: Eventual::MonthName

Inherits:
Treetop::Runtime::SyntaxNode
  • Object
show all
Defined in:
lib/eventual/syntax_nodes.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#valueObject



48
49
50
# File 'lib/eventual/syntax_nodes.rb', line 48

def value
  ShortMonthNames.index(text_value.downcase.match(/#{ ShortMonthNames.join('|') }/).to_s) + 1
end