Class: Celluloid::SystemEvent::LinkingEvent

Inherits:
Celluloid::SystemEvent show all
Defined in:
lib/celluloid/system_events.rb

Direct Known Subclasses

LinkingRequest, LinkingResponse

Instance Method Summary collapse

Methods inherited from Celluloid::SystemEvent

handle, handler

Constructor Details

#initialize(actor, type) ⇒ LinkingEvent

Shared initializer for LinkingRequest and LinkingResponse


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

def initialize(actor, type)
  @actor = actor
  @type = type.to_sym
  fail ArgumentError, "type must be link or unlink" unless [:link, :unlink].include?(@type)
end