Class: Rjq::AST::Literal
Instance Attribute Summary collapse
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Attributes inherited from Node
Instance Method Summary collapse
- #eval(_input, _context) ⇒ Object
-
#initialize(value) ⇒ Literal
constructor
A new instance of Literal.
Methods inherited from Node
#assign_value, #invalid_path_message, #paths, #take, #with_source_span
Constructor Details
#initialize(value) ⇒ Literal
Returns a new instance of Literal.
200 201 202 |
# File 'lib/rjq/ast.rb', line 200 def initialize(value) @value = value end |
Instance Attribute Details
#value ⇒ Object (readonly)
Returns the value of attribute value.
198 199 200 |
# File 'lib/rjq/ast.rb', line 198 def value @value end |