Class Scrubyt::CompoundExample
In: lib/scrubyt/core/scraping/compound_example.rb
Parent: Object

Represents a compund example

There are two types of string examples in scRUBYt! right now: the simple example and the compound example. The simple example is specified by a string, and a compound example is specified with :contains, :begins_with and :ends_with descriptors - which can be both regexps or strings

Methods

Constants

DESCRIPTORS = [:contains, :begins_with, :ends_with]

Attributes

descriptor_hash  [RW] 

Public Class methods

Is the hash passed to this function a compound example descriptor hash? Need to decide this when parsing pattern parameters

[Validate]