Module: BunnyPublisher::Callbacks::ClassMethods
- Defined in:
- lib/bunny_publisher/callbacks.rb
Instance Method Summary collapse
- #after_publish(*filters, &blk) ⇒ Object
- #around_publish(*filters, &blk) ⇒ Object
- #before_publish(*filters, &blk) ⇒ Object
Instance Method Details
#after_publish(*filters, &blk) ⇒ Object
25 26 27 |
# File 'lib/bunny_publisher/callbacks.rb', line 25 def after_publish(*filters, &blk) set_callback(:publish, :after, *filters, &blk) end |
#around_publish(*filters, &blk) ⇒ Object
21 22 23 |
# File 'lib/bunny_publisher/callbacks.rb', line 21 def around_publish(*filters, &blk) set_callback(:publish, :around, *filters, &blk) end |
#before_publish(*filters, &blk) ⇒ Object
17 18 19 |
# File 'lib/bunny_publisher/callbacks.rb', line 17 def before_publish(*filters, &blk) set_callback(:publish, :before, *filters, &blk) end |