Class: Celluloid::ExitEvent
- Inherits:
-
SystemEvent
- Object
- SystemEvent
- Celluloid::ExitEvent
- Defined in:
- lib/celluloid/system_events.rb
Overview
An actor has exited for the given reason
Instance Attribute Summary collapse
-
#actor ⇒ Object
readonly
Returns the value of attribute actor.
-
#reason ⇒ Object
readonly
Returns the value of attribute reason.
Instance Method Summary collapse
-
#initialize(actor, reason = nil) ⇒ ExitEvent
constructor
A new instance of ExitEvent.
Methods inherited from SystemEvent
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
#actor ⇒ Object (readonly)
Returns the value of attribute actor.
74 75 76 |
# File 'lib/celluloid/system_events.rb', line 74 def actor @actor end |
#reason ⇒ Object (readonly)
Returns the value of attribute reason.
74 75 76 |
# File 'lib/celluloid/system_events.rb', line 74 def reason @reason end |