lib/hanami/events/cloud_pubsub/middleware/stack.rb
# Error raised when middleware is not callable
Error raised when middleware is not callable
Error raised when middleware is not callable
def invoke(*args, **kwargs)
            stack = entries.dup
            traverse_stack = proc do |**opts|
              if stack.empty?
                yield(*args, **kwargs, **opts)
              else
                stack.shift.call(*args, **kwargs, **opts, &traverse_stack)
              end
            end
            traverse_stack.call
          end
def invoke ( * args , ** kwargs ) stack = entries . dup traverse_stack = proc do | ** opts | if stack . empty? yield ( * args , ** kwargs , ** opts ) else stack . shift . call ( * args , ** kwargs , ** opts , & traverse_stack ) end end traverse_stack . call end
Error raised when middleware is not callable
Error raised when middleware is not callable
args
<not_specific>
kwargs
<not_specific>