Class | Scrubyt::EvaluationContext |
In: |
lib/scrubyt/core/shared/evaluation_context.rb
|
Parent: | Object |
Every kind of data that is shared among patterns during the extraction process is held in this class, so it can be looked up anytime.
This class provides also some high-level basic functionality in navigation, like crawling to new pages, attaching doucment to the root pattern once arrived at the desired page etc.
It can be viewed as a glue between Extractor and NavigationActions as well - these two classes need to communicate frequently as well as share different information and this is accomplished through EvaluationContext.
document_index | [RW] | |
evaluating_extractor_definition | [RW] | |
extractor | [RW] | |
root_pattern | [RW] | |
uri_builder | [RW] |
Crawl to a new page. This function should not be called from the outside - it is automatically called if the next_page pattern is defined