Class: JMESPath::Nodes::Literal Private

Inherits:
Node
  • Object
show all
Defined in:
lib/jmespath/nodes/literal.rb

Overview

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.

API:

  • private

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Node

#chains_with?, #optimize

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.

API:

  • private



8
9
10
# File 'lib/jmespath/nodes/literal.rb', line 8

def initialize(value)
  @value = value
end

Instance Attribute Details

#valueObject (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.

API:

  • private



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.

API:

  • private



12
13
14
# File 'lib/jmespath/nodes/literal.rb', line 12

def visit(_value)
  @value
end