Class: Concurrent::Actor::Behaviour::ExecutesContext

Inherits:
Abstract
  • Object
show all
Defined in:
lib/concurrent-ruby-edge/concurrent/actor/behaviour/executes_context.rb

Overview

Delegates messages and events to AbstractContext instance.

Instance Attribute Summary

Attributes inherited from Abstract

#core, #subsequent

Instance Method Summary collapse

Methods inherited from Abstract

#broadcast, #initialize, #pass, #reject_envelope

Methods included from InternalDelegations

#behaviour, #behaviour!, #children, #context, #dead_letter_routing, #log, #redirect, #terminate!, #terminated?

Methods included from PublicDelegations

#context_class, #executor, #name, #parent, #path, #reference

Methods included from TypeCheck

#Child!, #Child?, #Match!, #Match?, #Type!, #Type?

Constructor Details

This class inherits a constructor from Concurrent::Actor::Behaviour::Abstract

Instance Method Details

#on_envelope(envelope) ⇒ Object



8
9
10
# File 'lib/concurrent-ruby-edge/concurrent/actor/behaviour/executes_context.rb', line 8

def on_envelope(envelope)
  context.on_envelope envelope
end

#on_event(public, event) ⇒ Object



12
13
14
15
# File 'lib/concurrent-ruby-edge/concurrent/actor/behaviour/executes_context.rb', line 12

def on_event(public, event)
  context.on_event(event)
  super public, event
end