module Roda::RodaPlugins::RunRequireSlash::RequestMethods

  1. lib/roda/plugins/run_require_slash.rb

Methods

Public Instance

  1. run

Public Instance methods

run(*)

Calls the given rack app only if the remaining patch is empty or starts with a slash.

[show source]
   # File lib/roda/plugins/run_require_slash.rb
36 def run(*)
37   if @remaining_path.empty? || @remaining_path.start_with?('/')
38     super
39   end
40 end