Module: Wisper::Publisher::ClassMethods
- Defined in:
- lib/wisper/publisher.rb
Instance Method Summary collapse
-
#subscribe(listener, **options) ⇒ Object
subscribe a listener.
Instance Method Details
#subscribe(listener, **options) ⇒ Object
subscribe a listener
58 59 60 |
# File 'lib/wisper/publisher.rb', line 58 def subscribe(listener, **) GlobalListeners.subscribe(listener, **.merge(:scope => self)) end |