Route
# File lib/http_router/regex_route.rb, line 3 def initialize(router, path, opts = {}) @router, @original_path, @opts = router, path, opts @param_names = @original_path.respond_to?(:names) ? @original_path.names.map(&:to_sym) : [] @path_validation_regex = original_path Util.add_path_generation(self, self, opts.delete(:path_for_generation), @original_path) if opts.key?(:path_for_generation) process_opts end
# File lib/http_router/regex_route.rb, line 11 def add_path_to_tree @paths = [@original_path] add_non_path_to_tree(@router.root.add_free_match(@original_path), path, @param_names) end
# File lib/http_router/regex_route.rb, line 28 def generate_from?(params) false end
# File lib/http_router/regex_route.rb, line 20 def match_partially? true end
Generated with the Darkfish Rdoc Generator 2.