class Journey::Router::Strexp - journey-1.0.4 Documentation

# class Journey::Router::Strexp

### Attributes

anchor[R]
path[R]
requirements[R]
separators[R]

### Public Class Methods

new(path, requirements, separators, anchor = true) click to toggle source

    # File lib/journey/router/strexp.rb, line 10
    def initialize path, requirements, separators, anchor = true
      @path         = path
      @requirements = requirements
      @separators   = separators
      @anchor       = anchor
    end

### Public Instance Methods

names() click to toggle source

    # File lib/journey/router/strexp.rb, line 17
    def names
      @path.scan(/:\w+/).map { |s| s.tr(':', '') }
    end