Module: Triton::Messenger::Listenable
- Defined in:
- lib/triton/messenger.rb
Overview
Mixin that add shortcuts to emit events
Instance Method Summary collapse
Instance Method Details
#add_listener(type, once = false, &listener) ⇒ Object Also known as: on
70 71 72 |
# File 'lib/triton/messenger.rb', line 70 def add_listener(type, once=false, &listener) Triton::Messenger.add_listener(type, once, &listener) end |