Class: Fluent::FilterWhere::Parser::NumberLiteral

Inherits:
Literal
  • Object
show all
Defined in:
lib/fluent/plugin/filter_where/parser/literal.rb

Instance Attribute Summary

Attributes inherited from Literal

#text, #val

Instance Method Summary collapse

Methods inherited from Literal

#get

Constructor Details

#initialize(text) ⇒ NumberLiteral

Returns a new instance of NumberLiteral.



30
31
32
33
# File 'lib/fluent/plugin/filter_where/parser/literal.rb', line 30

def initialize(text)
  @text = text
  @val = Float(text)
end