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 180 def new(app, *args, &block) 181 if app.is_a?(Hash) 182 super 183 else 184 Forwarder.new(self, app, *args, &block) 185 end 186 end