Class Ariel::RuleSet
In: lib/ariel/rule_set.rb
Parent: Object

A RuleSet acts as a container for a Node::Structure’s start and end rules. These are stored as an ordered array and are applied in turn until there is a successful match. A RuleSet takes responsibility for applying start and end rules to extract an Node::Extracted.

Methods

apply_to   new  

Public Class methods

Public Instance methods

Returns an array of the extracted tokenstreams. An empty array is returned if the rules cannot be applied. TODO: Think more about the way list iteration rules are applied

[Validate]