Class: FilterParam::AST::Literals::Boolean
- Inherits:
-
FilterParam::AST::Literal
- Object
- Node
- FilterParam::AST::Literal
- FilterParam::AST::Literals::Boolean
- Defined in:
- lib/filter_param/ast/literals/boolean.rb
Constant Summary collapse
- TRUE =
new("true")
- FALSE =
new("false")
Instance Attribute Summary
Attributes inherited from FilterParam::AST::Literal
Instance Method Summary collapse
- #data_type ⇒ Object
-
#initialize(value) ⇒ Boolean
constructor
A new instance of Boolean.
Methods inherited from FilterParam::AST::Literal
Methods inherited from Node
Constructor Details
#initialize(value) ⇒ Boolean
Returns a new instance of Boolean.
5 6 7 |
# File 'lib/filter_param/ast/literals/boolean.rb', line 5 def initialize(value) @value = (value.to_s == "true") end |
Instance Method Details
#data_type ⇒ Object
9 10 11 |
# File 'lib/filter_param/ast/literals/boolean.rb', line 9 def data_type :boolean end |