Sha256: 13234bd0f585f99d5a6769c9d3a72b00ecbe65ad69253538d62bd053403fb540
Contents?: true
Size: 570 Bytes
Versions: 74
Compression:
Stored size: 570 Bytes
Contents
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
Version data entries
74 entries across 74 versions & 4 rubygems