Class: Jamespath::Token

Inherits:
Struct
  • Object
show all
Defined in:
lib/jamespath/tokenizer.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#posObject

Returns the value of attribute pos



4
5
6
# File 'lib/jamespath/tokenizer.rb', line 4

def pos
  @pos
end

#typeObject

Returns the value of attribute type



4
5
6
# File 'lib/jamespath/tokenizer.rb', line 4

def type
  @type
end

#valueObject

Returns the value of attribute value



4
5
6
# File 'lib/jamespath/tokenizer.rb', line 4

def value
  @value
end

Instance Method Details

#inspectObject Also known as: to_s



5
# File 'lib/jamespath/tokenizer.rb', line 5

def inspect; "#{type}(#{value.inspect}, pos=#{pos})" end