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.16 lib/action_dispatch/journey/router/strexp.rb
actionpack-4.1.16.rc1 lib/action_dispatch/journey/router/strexp.rb
actionpack-4.1.15 lib/action_dispatch/journey/router/strexp.rb
actionpack-4.1.15.rc1 lib/action_dispatch/journey/router/strexp.rb
actionpack-4.1.14.2 lib/action_dispatch/journey/router/strexp.rb
actionpack-4.1.14.1 lib/action_dispatch/journey/router/strexp.rb
angular-rails4-templates-0.4.1 vendor/ruby/2.1.0/gems/actionpack-4.1.13/lib/action_dispatch/journey/router/strexp.rb
angular-rails4-templates-0.4.0 vendor/ruby/2.1.0/gems/actionpack-4.1.13/lib/action_dispatch/journey/router/strexp.rb
angular-rails4-templates-0.3.0 vendor/ruby/2.1.0/gems/actionpack-4.1.13/lib/action_dispatch/journey/router/strexp.rb
actionpack-4.1.14 lib/action_dispatch/journey/router/strexp.rb
actionpack-4.1.14.rc2 lib/action_dispatch/journey/router/strexp.rb
actionpack-4.1.14.rc1 lib/action_dispatch/journey/router/strexp.rb
actionpack-4.1.13 lib/action_dispatch/journey/router/strexp.rb
actionpack-4.1.13.rc1 lib/action_dispatch/journey/router/strexp.rb
actionpack-4.1.12 lib/action_dispatch/journey/router/strexp.rb
actionpack-4.1.12.rc1 lib/action_dispatch/journey/router/strexp.rb
actionpack-4.1.11 lib/action_dispatch/journey/router/strexp.rb
actionpack-4.1.10 lib/action_dispatch/journey/router/strexp.rb
actionpack-4.1.10.rc4 lib/action_dispatch/journey/router/strexp.rb
actionpack-4.1.10.rc3 lib/action_dispatch/journey/router/strexp.rb