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

Version Path
actionpack-4.1.0.beta2 lib/action_dispatch/journey/router/strexp.rb
actionpack-4.0.3 lib/action_dispatch/journey/router/strexp.rb
actionpack-4.1.0.beta1 lib/action_dispatch/journey/router/strexp.rb
actionpack-4.0.2 lib/action_dispatch/journey/router/strexp.rb
actionpack-4.0.1 lib/action_dispatch/journey/router/strexp.rb
actionpack-4.0.1.rc4 lib/action_dispatch/journey/router/strexp.rb
actionpack-4.0.1.rc3 lib/action_dispatch/journey/router/strexp.rb
actionpack-4.0.1.rc2 lib/action_dispatch/journey/router/strexp.rb
actionpack-4.0.1.rc1 lib/action_dispatch/journey/router/strexp.rb
challah-1.0.0 vendor/bundle/gems/actionpack-4.0.0/lib/action_dispatch/journey/router/strexp.rb
actionpack-4.0.0 lib/action_dispatch/journey/router/strexp.rb
actionpack-4.0.0.rc2 lib/action_dispatch/journey/router/strexp.rb
actionpack-4.0.0.rc1 lib/action_dispatch/journey/router/strexp.rb
actionpack-4.0.0.beta1 lib/action_dispatch/journey/router/strexp.rb