lib/roda/plugins/middleware.rb
def new(app, *args, &block)
          if app.is_a?(Hash)
            super
          else
            Forwarder.new(self, app, *args, &block)
          end
        end
# Create a Forwarder instead of a new instance if a non-Hash is given.
Create a Forwarder instead of a new instance if a non-Hash is given.
Create a Forwarder instead of a new instance if a non - Hash is given .
def new(app, *args, &block)
          if app.is_a?(Hash)
            super
          else
            Forwarder.new(self, app, *args, &block)
          end
        end
def new ( app , * args , & block ) if app . is_a? ( Hash ) super else Forwarder . new ( self , app , * args , & block ) end end
Create a Forwarder instead of a new instance if a non-Hash is given.
Create a Forwarder instead of a new instance if a non - Hash is given .
app
args
block