Module: Flirt::Listener
- Defined in:
- lib/flirt/listener.rb
Instance Method Summary collapse
Instance Method Details
#subscribe_to(event_name, opts = {}) ⇒ Object
34 35 36 |
# File 'lib/flirt/listener.rb', line 34 def subscribe_to(event_name, opts = {}) Flirt.subscribe self, event_name, opts end |
#unsubscribe_from(event_name, opts = {}) ⇒ Object
39 40 41 |
# File 'lib/flirt/listener.rb', line 39 def unsubscribe_from(event_name, opts = {}) Flirt.unsubscribe self, event_name, opts end |