Public Instance methods
root(&block)
Match when the remaining path is the empty string, in addition to the default behavior of matching when the remaining path is /
.
[show source]
# File lib/roda/plugins/empty_root.rb 38 def root(&block) 39 super 40 if remaining_path.empty? && is_get? 41 always(&block) 42 end 43 end