Class: Concurrent::Actor::UnknownMessage

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

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Constructor Details

- (UnknownMessage) initialize(envelope)

Returns a new instance of UnknownMessage



21
22
23
24
# File 'lib/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

- (undocumented) envelope (readonly)



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

def envelope
  @envelope
end

Instance Method Details

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

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

Returns:

  • (Boolean)

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

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

Returns:

  • (Boolean)

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

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

Returns:

  • (Boolean)