module Roda::RodaPlugins::HashPaths::RequestMethods

  1. lib/roda/plugins/hash_paths.rb

Methods

Public Instance

  1. hash_paths

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     @remaining_path = ''
120     always{scope.send(meth, self)}
121   end
122 end