Skip to Content Skip to Search

Action Mailbox Callbacks

Defines the callbacks related to processing.

Methods
A
B
Included Modules

Constants

TERMINATOR = ->(mailbox, chain) do chain.call mailbox.finished_processing? end
 

Instance Public methods

after_processing(*methods, &block)

# File actionmailbox/lib/action_mailbox/callbacks.rb, line 27
def after_processing(*methods, &block)
  set_callback(:process, :after, *methods, &block)
end

around_processing(*methods, &block)

# File actionmailbox/lib/action_mailbox/callbacks.rb, line 31
def around_processing(*methods, &block)
  set_callback(:process, :around, *methods, &block)
end

before_processing(*methods, &block)

# File actionmailbox/lib/action_mailbox/callbacks.rb, line 23
def before_processing(*methods, &block)
  set_callback(:process, :before, *methods, &block)
end