Class: JPath::Parser::Descendant

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

Instance Attribute Summary

Attributes inherited from Step

#name, #predicates

Instance Method Summary collapse

Methods inherited from Node

#select

Methods inherited from Step

#+, #<<, #initialize, #to_s, #wildcard?

Constructor Details

This class inherits a constructor from JPath::Parser::Step

Instance Method Details

#axisObject



120
121
122
# File 'lib/jpath/parser/step.rb', line 120

def axis
  "descendant"
end

#from(item, context) ⇒ Object



116
117
118
# File 'lib/jpath/parser/step.rb', line 116

def from(item, context)
  return select item, item.descendants(context)
end