Class: Mailman::Route::ToCondition
- Inherits:
-
Condition
- Object
- Condition
- Mailman::Route::ToCondition
- Defined in:
- lib/mailman/route/conditions.rb
Overview
Matches against the To addresses of a message.
Instance Attribute Summary
Attributes inherited from Condition
Instance Method Summary (collapse)
Methods inherited from Condition
Constructor Details
This class inherits a constructor from Mailman::Route::Condition
Instance Method Details
- (Object) match(message)
6 7 8 9 10 11 12 13 14 15 |
# File 'lib/mailman/route/conditions.rb', line 6 def match() if !.to.nil? .to.each do |address| if result = @matcher.match(address) return result end end end nil end |