Class: Jamespath::Token
- Inherits:
-
Struct
- Object
- Struct
- Jamespath::Token
- Defined in:
- lib/jamespath/tokenizer.rb
Instance Attribute Summary collapse
-
#pos ⇒ Object
Returns the value of attribute pos.
-
#type ⇒ Object
Returns the value of attribute type.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
- #inspect ⇒ Object (also: #to_s)
Instance Attribute Details
#pos ⇒ Object
Returns the value of attribute pos
4 5 6 |
# File 'lib/jamespath/tokenizer.rb', line 4 def pos @pos end |
#type ⇒ Object
Returns the value of attribute type
4 5 6 |
# File 'lib/jamespath/tokenizer.rb', line 4 def type @type end |
#value ⇒ Object
Returns the value of attribute value
4 5 6 |
# File 'lib/jamespath/tokenizer.rb', line 4 def value @value end |
Instance Method Details
#inspect ⇒ Object Also known as: to_s
5 |
# File 'lib/jamespath/tokenizer.rb', line 5 def inspect; "#{type}(#{value.inspect}, pos=#{pos})" end |