Module: Chatterbox::Publishers

Extended by:
Publishers
Included in:
Publishers
Defined in:
lib/chatterbox.rb

Instance Method Summary collapse

Instance Method Details

#clear!Object



69
70
71
# File 'lib/chatterbox.rb', line 69

def clear!
  @publishers = []
end

#publishersObject



59
60
61
# File 'lib/chatterbox.rb', line 59

def publishers
  @publishers ||= []
end

#register(&blk) ⇒ Object



63
64
65
66
67
# File 'lib/chatterbox.rb', line 63

def register(&blk)
  Chatterbox.logger.debug { "Registering publisher: #{blk}"}
  publishers << blk
  blk
end