Class: FilterLexer::DatetimeLiteral
- Defined in:
- lib/filter_lexer/nodes/literals.rb
Overview
A datetime is a moment in time
Instance Method Summary collapse
Instance Method Details
#data ⇒ Object
43 44 45 |
# File 'lib/filter_lexer/nodes/literals.rb', line 43 def data return DateTime.parse(elements.first.data) end |