# File lib/celluloid/system_events.rb, line 9definitialize(actor, type)
@actor, @type = actor, type.to_symraiseArgumentError, "type must be link or unlink"unless [:link, :unlink].include?(@type)
end
Public Instance Methods
process(links)click to toggle source
# File lib/celluloid/system_events.rb, line 14defprocess(links)
casetypewhen:linkthenlinks<<actorwhen:unlinkthenlinks.deleteactorendactor.mailbox<<LinkingResponse.new(Actor.current, type)
end