Public Instance methods
hash_paths(namespace=matched_path)
Checks the matching hash_path namespace for a branch matching the remaining path, and dispatch to that block if there is one.
[show source]
# File lib/roda/plugins/hash_paths.rb 117 def hash_paths(namespace=matched_path) 118 if (routes = roda_class.opts[:hash_paths][namespace]) && (meth = routes[@remaining_path]) 119 always do 120 @remaining_path = '' 121 scope.send(meth, self) 122 end 123 end 124 end