Class: Castiel::Parsers::DateTimeParser
- Inherits:
-
BaseParser
- Object
- BaseParser
- Castiel::Parsers::DateTimeParser
- Defined in:
- lib/castiel/parsers/date_time_parser.rb
Instance Method Summary collapse
-
#initialize ⇒ DateTimeParser
constructor
A new instance of DateTimeParser.
Methods inherited from BaseParser
#<<, #parse, #parse_element, #parsers
Constructor Details
#initialize ⇒ DateTimeParser
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 |