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.



81
82
83
84
# File 'lib/celluloid/system_events.rb', line 81

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

Instance Attribute Details

#actorObject (readonly)

Returns the value of attribute actor.



74
75
76
# File 'lib/celluloid/system_events.rb', line 74

def actor
  @actor
end

#reasonObject (readonly)

Returns the value of attribute reason.



74
75
76
# File 'lib/celluloid/system_events.rb', line 74

def reason
  @reason
end