Class: Luoma::BooleanLiteral
- Inherits:
-
Expression
- Object
- Expression
- Luoma::BooleanLiteral
- Defined in:
- lib/luoma/expression.rb,
sig/luoma/expression.rbs
Instance Attribute Summary collapse
-
#value ⇒ Boolean
readonly
Returns the value of attribute value.
Attributes inherited from Expression
Instance Method Summary collapse
-
#children ⇒ ::Array[_Traversable]
() -> Array.
-
#evaluate(context) ⇒ Object
(RenderContext) -> untyped.
-
#initialize(token, value) ⇒ BooleanLiteral
constructor
(t_token, bool).
-
#to_s ⇒ String
() -> String.
Methods inherited from Expression
Constructor Details
#initialize(token, value) ⇒ BooleanLiteral
(t_token, bool)
839 840 841 842 |
# File 'lib/luoma/expression.rb', line 839 def initialize(token, value) super(token) @value = value end |
Instance Attribute Details
#value ⇒ Boolean (readonly)
Returns the value of attribute value.
836 837 838 |
# File 'lib/luoma/expression.rb', line 836 def value @value end |
Instance Method Details
#children ⇒ ::Array[_Traversable]
() -> Array
286 287 288 |
# File 'sig/luoma/expression.rbs', line 286 def children [] end |
#evaluate(context) ⇒ Object
(RenderContext) -> untyped
845 846 847 |
# File 'lib/luoma/expression.rb', line 845 def evaluate(context) @value end |
#to_s ⇒ String
() -> String
854 855 856 |
# File 'lib/luoma/expression.rb', line 854 def to_s @value.to_s end |