Parent

Files

HttpRouter::Route

Constants

VALID_HTTP_VERBS

The list of HTTP request methods supported by HttpRouter.

VALID_HTTP_VERBS_WITHOUT_GET

Attributes

default_values[R]
dest[RW]
generator[RW]
host[RW]
ignore_trailing_slash[RW]
match_partially[RW]
name[R]
original_path[RW]
other_hosts[R]
path_for_generation[RW]
path_validation_regex[RW]
paths[R]
request_methods[R]
router[RW]
scheme[RW]
user_agent[RW]

Public Instance Methods

create_clone(new_router) click to toggle source
# File lib/http_router/route.rb, line 13
def create_clone(new_router)
  r = clone
  r.dest = (begin; dest.clone; rescue; dest; end)
  r
end
matches_with(var_name) click to toggle source
# File lib/http_router/route.rb, line 23
def matches_with(var_name)
  @match_with && @match_with[:"#{var_name}"]
end
name=(name) click to toggle source
# File lib/http_router/route.rb, line 27
def name=(name)
  @name = name
  router.named_routes[name] << self
end
to_s() click to toggle source
# File lib/http_router/route.rb, line 19
def to_s
  "#<HttpRouter:Route #{object_id} @path_for_generation=#{path_for_generation.inspect}>"
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.