Class: FilterLexer::NumberLiteral

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

Overview

A number is an integer or a float, with an optional sign and an optional exponent

Instance Method Summary collapse

Instance Method Details

#dataObject



36
37
38
# File 'lib/filter_lexer/nodes/literals.rb', line 36

def data
	return text_value.to_f
end