Class

SimpleExampleLookup

Extends:

Lookup of simple 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 simple 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 Methods
find_node_from_text From the example text defined by the user, find the lowest possible node which contains the text ‘text’. The text can be also a mixed content text, e.g.
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.