Class: FilterLexer::DatetimeLiteral

Inherits:
Literal
  • Object
show all
Defined in:
lib/filter_lexer/nodes/literals.rb

Overview

A datetime is a moment in time

Instance Method Summary collapse

Instance Method Details

#dataObject



43
44
45
# File 'lib/filter_lexer/nodes/literals.rb', line 43

def data
	return DateTime.parse(elements.first.data)
end