Class: ImapMogura::OrOperator

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)


48
49
50
51
# File 'lib/imap_mogura/rules_parser/rule_elements.rb', line 48

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