Sha256: 060ea121dcb844dc6690cd2ad9bd890f1d424bf6d95906a67de5ce4afc29bd0f
Contents?: true
Size: 475 Bytes
Versions: 104
Compression:
Stored size: 475 Bytes
Contents
module Journey class Router class Strexp 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
Version data entries
104 entries across 78 versions & 19 rubygems