Module: PubSub::Subscriber::ClassMethods
- Defined in:
- lib/pub_sub/subscriber.rb
Instance Method Summary collapse
Instance Method Details
#sub(event) ⇒ Object
12 13 14 15 |
# File 'lib/pub_sub/subscriber.rb', line 12 def sub(event) PubSub::Configuration.container.sub(event, self.name) true end |
#unsub(event) ⇒ Object
17 18 19 20 |
# File 'lib/pub_sub/subscriber.rb', line 17 def unsub(event) PubSub::Configuration.container.unsub(event, self.name) true end |