Class: JPath::Parser::Position

Inherits:
Object
  • Object
show all
Defined in:
lib/jpath/parser/formula.rb

Instance Method Summary collapse

Instance Method Details

#+(other) ⇒ Object



166
167
168
# File 'lib/jpath/parser/formula.rb', line 166

def +(other)
  other.add(self)
end

#to_sObject



158
159
160
# File 'lib/jpath/parser/formula.rb', line 158

def to_s
  "position()"
end

#value(hash, pointer, index, size) ⇒ Object



162
163
164
# File 'lib/jpath/parser/formula.rb', line 162

def value(hash, pointer, index, size)
  index
end