class Celluloid::Cell::ExitHandler
Public Class Methods
new(behavior, subject, method_name)
click to toggle source
# File lib/celluloid/cell.rb, line 7 def initialize(behavior, subject, method_name) @behavior = behavior @subject = subject @method_name = method_name end
Public Instance Methods
call(event)
click to toggle source
# File lib/celluloid/cell.rb, line 13 def call(event) @behavior.task(:exit_handler, @method_name) do @subject.send(@method_name, event.actor, event.reason) end end