Class: FilterParam::AST::Literals::String

Inherits:
FilterParam::AST::Literal show all
Defined in:
lib/filter_param/ast/literals/string.rb

Instance Attribute Summary

Attributes inherited from FilterParam::AST::Literal

#value

Instance Method Summary collapse

Methods inherited from FilterParam::AST::Literal

#type_cast

Methods inherited from Node

#accept

Constructor Details

#initialize(value) ⇒ String

Returns a new instance of String.



5
6
7
# File 'lib/filter_param/ast/literals/string.rb', line 5

def initialize(value)
  @value = value.to_s
end

Instance Method Details

#data_typeObject



9
10
11
# File 'lib/filter_param/ast/literals/string.rb', line 9

def data_type
  :string
end