Class: ObServ::CelluloidPublisher
- Inherits:
-
Object
- Object
- ObServ::CelluloidPublisher
- Defined in:
- lib/ob_serv/celluloid_publisher.rb
Defined Under Namespace
Classes: Wrapper
Class Method Summary collapse
Class Method Details
.publish(event, *args) ⇒ Object
5 6 7 |
# File 'lib/ob_serv/celluloid_publisher.rb', line 5 def self.publish(event, *args) Wrapper.new.async.publish(event, *args) end |
.register ⇒ Object
16 17 18 19 |
# File 'lib/ob_serv/celluloid_publisher.rb', line 16 def self.register method = ObServ::CelluloidPublisher.method(:publish) ObServ.config[:publish] = method end |