Object
# File lib/http_router/node.rb, line 65 def add_destination(route, path, param_names = []) add(Path.new(@router, self, route, path, param_names)) end
# File lib/http_router/node.rb, line 61 def add_free_match(regexp) add(FreeRegex.new(@router, self, regexp)) end
# File lib/http_router/node.rb, line 29 def add_glob add(Glob.new(@router, self)) end
# File lib/http_router/node.rb, line 33 def add_glob_regexp(matcher) add(GlobRegex.new(@router, self, matcher)) end
# File lib/http_router/node.rb, line 37 def add_host(hosts) add(Host.new(@router, self, hosts)) end
# File lib/http_router/node.rb, line 69 def add_lookup(part) add(Lookup.new(@router, self)).add(part) end
# File lib/http_router/node.rb, line 53 def add_match(regexp, matching_indicies = [0], splitting_indicies = nil) add(Regex.new(@router, self, regexp, matching_indicies, splitting_indicies)) end
# File lib/http_router/node.rb, line 45 def add_request_method(rm) add(RequestMethod.new(@router, self, rm)) end
# File lib/http_router/node.rb, line 49 def add_scheme(scheme) add(Scheme.new(@router, self, scheme)) end
# File lib/http_router/node.rb, line 57 def add_spanning_match(regexp, matching_indicies = [0], splitting_indicies = nil) add(SpanningRegex.new(@router, self, regexp, matching_indicies, splitting_indicies)) end
# File lib/http_router/node.rb, line 41 def add_user_agent(uas) add(UserAgent.new(@router, self, uas)) end
# File lib/http_router/node.rb, line 25 def add_variable add(Variable.new(@router, self)) end
# File lib/http_router/node.rb, line 94 def depth @parent.send(:depth) + 1 end
# File lib/http_router/node.rb, line 77 def inspect ins = "#{' ' * depth}#{inspect_label}" body = inspect_matchers_body unless body =~ /^\s*$/ ins << "\n" << body end ins end
# File lib/http_router/node.rb, line 86 def inspect_label "#{self.class.name.split("::").last} (#{@matchers.size} matchers)" end
Generated with the Darkfish Rdoc Generator 2.