Public Class methods
new(scope, env)
Rewrite remaining_path and/or PATH_INFO based on the path rewrites.
[show source]
# File lib/roda/plugins/path_rewriter.rb 85 def initialize(scope, env) 86 path_info = env['PATH_INFO'] 87 88 rewrite_path(scope.class.opts[:path_info_rewrites], path_info) 89 super 90 remaining_path = @remaining_path = @remaining_path.dup 91 rewrite_path(scope.class.opts[:remaining_path_rewrites], remaining_path) 92 end