Class: Celluloid::SystemEvent::LinkingEvent
- Inherits:
-
Celluloid::SystemEvent
- Object
- Celluloid::SystemEvent
- Celluloid::SystemEvent::LinkingEvent
- Defined in:
- lib/celluloid/system_events.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(actor, type) ⇒ LinkingEvent
constructor
Shared initializer for LinkingRequest and LinkingResponse.
Methods inherited from Celluloid::SystemEvent
Constructor Details
#initialize(actor, type) ⇒ LinkingEvent
Shared initializer for LinkingRequest and LinkingResponse
41 42 43 44 45 |
# File 'lib/celluloid/system_events.rb', line 41 def initialize(actor, type) @actor = actor @type = type.to_sym raise ArgumentError, "type must be link or unlink" unless %i[link unlink].include?(@type) end |