Exception: Celluloid::ExitEvent
- Inherits:
-
SystemEvent
- Object
- Exception
- SystemEvent
- Celluloid::ExitEvent
- Defined in:
- lib/celluloid/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.
Constructor Details
#initialize(actor, reason = nil) ⇒ ExitEvent
Returns a new instance of ExitEvent.
9 10 11 12 |
# File 'lib/celluloid/events.rb', line 9 def initialize(actor, reason = nil) @actor, @reason = actor, reason super reason.to_s end |
Instance Attribute Details
#actor ⇒ Object (readonly)
Returns the value of attribute actor.
7 8 9 |
# File 'lib/celluloid/events.rb', line 7 def actor @actor end |
#reason ⇒ Object (readonly)
Returns the value of attribute reason.
7 8 9 |
# File 'lib/celluloid/events.rb', line 7 def reason @reason end |