Class: HttpRouter::Route

### Home Classes Methods

### In Files

- lib/http_router/route.rb

### Parent

Object

### Methods

- #create_clone
- #matches_with
- #name=
- #to_s

### Files

- LICENSE

### Class/Module Index

Quicksearch

- HttpRouter
- HttpRouter::GenerationHelper
- HttpRouter::Generator
- HttpRouter::Generator::PathGenerator
- HttpRouter::Node
- HttpRouter::Node::AbstractRequestNode
- HttpRouter::Node::FreeRegex
- HttpRouter::Node::Glob
- HttpRouter::Node::GlobRegex
- HttpRouter::Node::Host
- HttpRouter::Node::Lookup
- HttpRouter::Node::Path
- HttpRouter::Node::Regex
- HttpRouter::Node::RequestMethod
- HttpRouter::Node::Root
- HttpRouter::Node::Scheme
- HttpRouter::Node::SpanningRegex
- HttpRouter::Node::UserAgent
- HttpRouter::Node::Variable
- HttpRouter::RegexRouteGeneration
- HttpRouter::Request
- HttpRouter::Response
- HttpRouter::Route
- HttpRouter::RouteHelper
- HttpRouter::Util

No matching classes.

# 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 if router
    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.