class Listen::Listener::Config
def adapter_instance_options(klass)
def adapter_instance_options(klass) valid_keys = klass.const_get('DEFAULTS').keys Hash[@options.select { |key, _| valid_keys.include?(key) }] end
def adapter_select_options
def adapter_select_options valid_keys = %w[force_polling polling_fallback_message].map(&:to_sym) Hash[@options.select { |key, _| valid_keys.include?(key) }] end
def initialize(opts)
def initialize(opts) @options = DEFAULTS.merge(opts) @relative = @options[:relative] @min_delay_between_events = @options[:wait_for_delay] @silencer_rules = @options # silencer will extract what it needs end
def relative?
def relative? @relative end