Module: Dynflow::EnvelopeBacktraceExtension
- Defined in:
- lib/dynflow/actor.rb
Overview
Extend the Concurrent::Actor::Envelope to include information about the origin of the message
Instance Method Summary collapse
Instance Method Details
#initialize(*args) ⇒ Object
19 20 21 22 |
# File 'lib/dynflow/actor.rb', line 19 def initialize(*args) super @origin_backtrace = caller + Actor::BacktraceCollector.current_actor_backtrace end |
#inspect ⇒ Object
28 29 30 |
# File 'lib/dynflow/actor.rb', line 28 def inspect "#<#{self.class.name}:#{object_id}> @message=#{@message.inspect}, @sender=#{@sender.inspect}, @address=#{@address.inspect}>" end |
#origin_backtrace ⇒ Object
24 25 26 |
# File 'lib/dynflow/actor.rb', line 24 def origin_backtrace @origin_backtrace end |