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 132 def new(app, *args, &block) 133 if app.is_a?(Hash) 134 super 135 else 136 Forwarder.new(self, app, *args, &block) 137 end 138 end