Public Instance methods
new(app, *args, &block)
Create a Forwarder
instead of a new instance if a non-Hash is given.
[show source]
# File lib/roda/plugins/middleware.rb 179 def new(app, *args, &block) 180 if app.is_a?(Hash) 181 super 182 else 183 Forwarder.new(self, app, *args, &block) 184 end 185 end