Class: JMESPath::Nodes::Literal Private
- Defined in:
- lib/jmespath/nodes/literal.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Attribute Summary collapse
- #value ⇒ Object readonly private
Instance Method Summary collapse
-
#initialize(value) ⇒ Literal
constructor
private
A new instance of Literal.
- #visit(_value) ⇒ Object private
Methods inherited from Node
Constructor Details
#initialize(value) ⇒ Literal
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of Literal.
8 9 10 |
# File 'lib/jmespath/nodes/literal.rb', line 8 def initialize(value) @value = value end |
Instance Attribute Details
#value ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
6 7 8 |
# File 'lib/jmespath/nodes/literal.rb', line 6 def value @value end |
Instance Method Details
#visit(_value) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
12 13 14 |
# File 'lib/jmespath/nodes/literal.rb', line 12 def visit(_value) @value end |