Parent

Scrubyt::CompoundExampleLookup

Lookup of compund examples

There are two types of string examples in scRUBYt! right now: the simple example and the compound example.

This class is responsible for finding elements matched by compound examples. In the futre probably more sophisticated matching algorithms will be added (e.g. match the n-th which matches the text, or element that matches the text but also contains a specific attribute etc.)

Public Class Methods

find_node_from_compund_example(doc, compound_example, next_link=false, index = 0) click to toggle source
# File lib/scrubyt/utils/compound_example_lookup.rb, line 11
def self.find_node_from_compund_example(doc, compound_example, next_link=false, index = 0)
  @partial_results = []
  self.lookup_compound_example(doc, compound_example, index)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.