Class: Celluloid::ExitEvent

Inherits:
SystemEvent show all
Defined in:
lib/celluloid/system_events.rb

Overview

An actor has exited for the given reason

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from SystemEvent

handle, handler

Constructor Details

#initialize(actor, reason = nil) ⇒ ExitEvent

Returns a new instance of ExitEvent


78
79
80
81
# File 'lib/celluloid/system_events.rb', line 78

def initialize(actor, reason = nil)
  @actor = actor
  @reason = reason
end

Instance Attribute Details

#actorObject (readonly)

Returns the value of attribute actor


71
72
73
# File 'lib/celluloid/system_events.rb', line 71

def actor
  @actor
end

#reasonObject (readonly)

Returns the value of attribute reason


71
72
73
# File 'lib/celluloid/system_events.rb', line 71

def reason
  @reason
end