module Roda::RodaPlugins::HashPaths::RequestMethods
Public Instance Methods
Source
# File lib/roda/plugins/hash_paths.rb, line 117 def hash_paths(namespace=matched_path) if (routes = roda_class.opts[:hash_paths][namespace]) && (meth = routes[@remaining_path]) @remaining_path = '' always{scope.send(meth, self)} end end
Checks the matching hash_path namespace for a branch matching the remaining path, and dispatch to that block if there is one.