class Gammo::XPath::AST::Axis::FollowingSibling

Public Instance Methods

strain(context, context_node, node_set) click to toggle source
# File lib/gammo/xpath/ast/axis.rb, line 158
def strain(context, context_node, node_set)
  return if context_node.instance_of?(Gammo::Attribute)
  node = context_node
  while node = node.next_sibling
    node_set << node if node_test.match?(node)
  end
end