Method: PlainText::ParseRule#rules

Defined in:
lib/plain_text/parse_rule.rb

#rulesObject (readonly)

Main Array of rules (Proc or Regexp). Do not delete or add the contents, as it would have a knock-on effect, especially with #names! Use #rule_at to get a rule for the index/key. The private method #rule_at(-1) is the same as #rules, but is more versatile and can be called like #rules_at(:my_rule1, :my_rule2).



96
97
98
# File 'lib/plain_text/parse_rule.rb', line 96

def rules
  @rules
end