跳至内容 跳至搜索

Action Mailbox 回调

定义与处理相关的回调。

方法
A
B
包含的模块

常量

TERMINATOR = ->(邮箱, 链) do 链.call 邮箱.finished_processing? end
 

实例公共方法

after_processing(*方法, &块)

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

around_processing(*方法, &块)

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

before_processing(*方法, &块)

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