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 119 def hash_paths(namespace=matched_path) 120 if (routes = roda_class.hash_paths[namespace]) && (meth = routes[@remaining_path]) 121 always do 122 @remaining_path = '' 123 scope.send(meth, self) 124 end 125 end 126 end