module Roda::RodaPlugins::EmptyRoot::RequestMethods
Public Instance Methods
Source
# File lib/roda/plugins/empty_root.rb, line 38 def root(&block) super if remaining_path.empty? && is_get? always(&block) end end
Match when the remaining path is the empty string, in addition to the default behavior of matching when the remaining path is /
.
Calls superclass method