Method: Wisper::Publisher#subscribe
- Defined in:
- lib/wisper/publisher.rb
#subscribe(listener, **options) ⇒ self
subscribe a listener
13 14 15 16 17 |
# File 'lib/wisper/publisher.rb', line 13 def subscribe(listener, **) raise ArgumentError, "#{__method__} does not take a block, did you mean to call #on instead?" if block_given? local_registrations << ObjectRegistration.new(listener, **) self end |