Class: ImapMogura::FieldMatcher

Inherits:
RuleElement show all
Defined in:
lib/imap_mogura/rules_parser/rule_elements.rb

Direct Known Subclasses

GeneralFieldMatcher, SpecialFieldMatcher

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RuleElement

#match?

Constructor Details

#initialize(regexp) ⇒ FieldMatcher

Returns a new instance of FieldMatcher.



55
56
57
58
59
# File 'lib/imap_mogura/rules_parser/rule_elements.rb', line 55

def initialize(regexp)
  @regexp = Regexp.new(regexp)

  super()
end

Instance Attribute Details

#regexpObject (readonly)

Returns the value of attribute regexp.



61
62
63
# File 'lib/imap_mogura/rules_parser/rule_elements.rb', line 61

def regexp
  @regexp
end