Module: Wisper::Publisher::ClassMethods

Defined in:
lib/wisper/publisher.rb

Instance Method Summary collapse

Instance Method Details

#add_listener(listener, options = {}) ⇒ Object Also known as: subscribe



27
28
29
# File 'lib/wisper/publisher.rb', line 27

def add_listener(listener, options = {})
  GlobalListeners.add(listener, options.merge(:scope => self))
end