跳到內容 跳到搜尋

Action Mailbox 的 callback

定義與處理相關的 callback。

方法
A
B
包含的模組

常數

TERMINATOR = ->(信箱, 鏈條) 做鏈條。呼叫 信箱.已處理完畢?
 

實例公開方法

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