Module: Chatterbox::Publishers
- Defined in:
- lib/chatterbox.rb
Class Method Summary collapse
Class Method Details
.clear! ⇒ Object
43 44 45 |
# File 'lib/chatterbox.rb', line 43 def clear! @publishers = [] end |
.publishers ⇒ Object
33 34 35 |
# File 'lib/chatterbox.rb', line 33 def publishers @publishers ||= [] end |
.register(&blk) ⇒ Object
37 38 39 40 41 |
# File 'lib/chatterbox.rb', line 37 def register(&blk) Chatterbox.logger.debug { "Registering publisher: #{blk}"} publishers << blk blk end |