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

Constructor Details

#initialize(actor, reason = nil) ⇒ ExitEvent

Returns a new instance of ExitEvent.


38
39
40
# File 'lib/celluloid/system_events.rb', line 38

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

Instance Attribute Details

#actorObject (readonly)

Returns the value of attribute actor


36
37
38
# File 'lib/celluloid/system_events.rb', line 36

def actor
  @actor
end

#reasonObject (readonly)

Returns the value of attribute reason


36
37
38
# File 'lib/celluloid/system_events.rb', line 36

def reason
  @reason
end