Module: Eventboss::Listener::ClassMethods

Defined in:
lib/eventboss/listener.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#optionsObject (readonly)

Returns the value of attribute options.



20
21
22
# File 'lib/eventboss/listener.rb', line 20

def options
  @options
end

Instance Method Details

#eventboss_options(options) ⇒ Object



22
23
24
25
26
# File 'lib/eventboss/listener.rb', line 22

def eventboss_options(options)
  @options = options.compact

  ACTIVE_LISTENERS[@options] = self
end