module Roda::RodaPlugins::Middleware::ClassMethods
Public Instance Methods
Source
# File lib/roda/plugins/middleware.rb, line 179 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.
Calls superclass method