Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: dd4822ce16
Fetching contributors…

Cannot retrieve contributors at this time

25 lines (21 sloc) 0.569 kb
module ActionDispatch
module Journey # :nodoc:
class Router # :nodoc:
class Strexp # :nodoc:
class << self
alias :compile :new
end
attr_reader :path, :requirements, :separators, :anchor
def initialize path, requirements, separators, anchor = true
@path = path
@requirements = requirements
@separators = separators
@anchor = anchor
end
def names
@path.scan(/:\w+/).map { |s| s.tr(':', '') }
end
end
end
end
end
Jump to Line
Something went wrong with that request. Please try again.