Class: ImapMogura::FieldMatcher
- Inherits:
-
RuleElement
- Object
- RuleElement
- ImapMogura::FieldMatcher
- Defined in:
- lib/imap_mogura/rules_parser/rule_elements.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#regexp ⇒ Object
readonly
Returns the value of attribute regexp.
Instance Method Summary collapse
-
#initialize(regexp) ⇒ FieldMatcher
constructor
A new instance of FieldMatcher.
Methods inherited from RuleElement
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
#regexp ⇒ Object (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 |