Class DataHarvester::Rule
In: scripts/parsing-rules.rb
Parent: Object

This class represents a rule for parsing the file

Methods

apply   new   to_s  

Attributes

match  [R] 
results  [R] 

Public Class methods

A rule consits of a regex pattern and the resulting data from a successful match.

Public Instance methods

Applies the rule to the given text

Returns a printable string, for troubleshooting

[Validate]