Class: JsonPath::Nodes::String
- Defined in:
- lib/json_path/nodes/string.rb
Instance Attribute Summary collapse
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(path, value) ⇒ String
constructor
A new instance of String.
Methods inherited from Base
Constructor Details
#initialize(path, value) ⇒ String
Returns a new instance of String.
6 7 8 9 |
# File 'lib/json_path/nodes/string.rb', line 6 def initialize path, value super path @value = value end |
Instance Attribute Details
#value ⇒ Object (readonly)
Returns the value of attribute value.
4 5 6 |
# File 'lib/json_path/nodes/string.rb', line 4 def value @value end |