lib/aggregates/message_processor.rb
# Provides a single mapping of Message Classes to a list of handler
# blocks that should be executed when that type of message is received.
Provides a single mapping of Message Classes to a list of handler
blocks that should be executed when that type of message is received.
Provides a single mapping of Message Classes to a list of handler blocks that should be executed when that type of message is received .
def invoke_handlers(message, *additional_args)
      results = []
      with_message_handlers(message) do |handler|
        results << instance_exec(message, *additional_args, &handler)
      end
      results
    end
def invoke_handlers ( message , * additional_args ) results = [ ] with_message_handlers ( message ) do | handler | results << instance_exec ( message , * additional_args , & handler ) end results end
Provides a single mapping of Message Classes to a list of handler
blocks that should be executed when that type of message is received.
Provides a single mapping of Message Classes to a list of handler blocks that should be executed when that type of message is received .
message
<not_specific>
additional_args
<not_specific>