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 186 def new(app, *args, &block) 187 if app.is_a?(Hash) 188 super 189 else 190 Forwarder.new(self, app, *args, &block) 191 end 192 end