Class: HttpRouter::Node::Glob

### Home Classes Methods

### In Files

- lib/http_router/node/glob.rb

### Parent

HttpRouter::Node

### Methods

- #node_to_code
- #to_code
- #usable?

### 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::Node::Glob

### Public Instance Methods

node_to_code() click to toggle source
Alias for: to_code
to_code() click to toggle source

    # File lib/http_router/node/glob.rb, line 9
    def to_code
      id = root.next_counter
      "request.params << (globbed_params#{id} = [])
        until request.path.empty?
          globbed_params#{id} << request.path.shift
          #{super}
        end
        request.path[0,0] = globbed_params#{id}"
    end

Also aliased as: node_to_code
usable?(other) click to toggle source

    # File lib/http_router/node/glob.rb, line 5
    def usable?(other)
      other.class == self.class
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.