Class: ImapMogura::AndOperator

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

Instance Attribute Summary

Attributes inherited from LogicalOperator

#operands

Instance Method Summary collapse

Methods inherited from LogicalOperator

#initialize, #to_s

Constructor Details

This class inherits a constructor from ImapMogura::LogicalOperator

Instance Method Details

#match?(mail) ⇒ Boolean

Returns:

  • (Boolean)


41
42
43
44
# File 'lib/imap_mogura/rules_parser/rule_elements.rb', line 41

def match?(mail)
  debug_out_before_trying_rule("All of the operands match the rule")
  debug_out_if_it_matches_rule(@operands.all? { |elm| elm.match?(mail) })
end