Class: Concurrent::Actor::UnknownMessage

Inherits:
Error
  • Object
show all
Includes:
TypeCheck
Defined in:
lib-edge/concurrent/actor/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(envelope) ⇒ UnknownMessage

Returns a new instance of UnknownMessage.



21
22
23
24
# File 'lib-edge/concurrent/actor/errors.rb', line 21

def initialize(envelope)
  @envelope = Type! envelope, Envelope
  super "#{envelope.message.inspect} from #{envelope.sender_path}"
end

Instance Attribute Details

#envelopeundocumented (readonly)



19
20
21
# File 'lib-edge/concurrent/actor/errors.rb', line 19

def envelope
  @envelope
end

Instance Method Details

#Child!(value, *types) ⇒ undocumented Originally defined in module TypeCheck

#Child?(value, *types) ⇒ Boolean Originally defined in module TypeCheck

Returns:

  • (Boolean)

#Match!(value, *types) ⇒ undocumented Originally defined in module TypeCheck

#Match?(value, *types) ⇒ Boolean Originally defined in module TypeCheck

Returns:

  • (Boolean)

#Type!(value, *types) ⇒ undocumented Originally defined in module TypeCheck

#Type?(value, *types) ⇒ Boolean Originally defined in module TypeCheck

Returns:

  • (Boolean)