module GmailBritta
# A generator DSL for importable gmail filter specifications.
This is the main entry point for defining a filter set (multiple filters). See {.filterset} for details.
Public Class Methods
Create a {FilterSet} and run the filter set definition in the block. This is the main entry point for GmailBritta
. @option opts :me [Array<String>] A list of email addresses that should be considered as belonging to “you”, effectively those email addresses you would expect `to:me` to match. @option opts :logger [Logger] (Logger.new()) An initialized logger instance. @options opts :author [Hash] The author of the gmail filters. The hash has :name and :email keys @yield the filterset definition block. `self` inside the block is the {FilterSet} instance. @return [FilterSet] the constructed filterset
# File lib/gmail-britta.rb, line 30 def self.filterset(opts={}, &block) (britta = FilterSet.new(opts)).rules(&block) britta end