Class: Castiel::Parsers::DateTimeParser

Inherits:
BaseParser
  • Object
show all
Defined in:
lib/castiel/parsers/date_time_parser.rb

Instance Method Summary collapse

Methods inherited from BaseParser

#<<, #parse, #parse_element, #parsers

Constructor Details

#initializeDateTimeParser

Returns a new instance of DateTimeParser.



5
6
7
8
9
# File 'lib/castiel/parsers/date_time_parser.rb', line 5

def initialize
  parsers << Castiel::Elements::SymbolElement.new
  parsers << Castiel::Elements::DateElement.new
  parsers << Castiel::Elements::HourElement.new
end