Sha256: 954532bd8e3c06174e4374f4af71314488de57f93af6716734c27b879ea8aa5f

Contents?: true

Size: 606 Bytes

Versions: 34

Compression:

Stored size: 606 Bytes

Contents

# frozen-string-literal: true

#
class Roda
  module RodaPlugins
    # The _symbol_regexp_matchers plugin is designed for internal use by other plugins,
    # for the historical behavior of a symbol matching an arbitrary segment by default
    # using a regexp.
    module SymbolRegexpMatchers
      module RequestMethods
        # The regular expression to use for matching symbols.  By default, any non-empty
        # segment matches.
        def _match_symbol_regexp(s)
          "([^\\/]+)"
        end
      end
    end

    register_plugin(:_symbol_regexp_matchers, SymbolRegexpMatchers)
  end
end

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
roda-3.12.0 lib/roda/plugins/_symbol_regexp_matchers.rb
roda-3.11.0 lib/roda/plugins/_symbol_regexp_matchers.rb
roda-3.10.0 lib/roda/plugins/_symbol_regexp_matchers.rb
roda-3.9.0 lib/roda/plugins/_symbol_regexp_matchers.rb
roda-3.8.0 lib/roda/plugins/_symbol_regexp_matchers.rb
roda-3.7.0 lib/roda/plugins/_symbol_regexp_matchers.rb
roda-3.6.0 lib/roda/plugins/_symbol_regexp_matchers.rb
roda-3.5.0 lib/roda/plugins/_symbol_regexp_matchers.rb
roda-3.4.0 lib/roda/plugins/_symbol_regexp_matchers.rb
roda-3.3.0 lib/roda/plugins/_symbol_regexp_matchers.rb
roda-3.2.0 lib/roda/plugins/_symbol_regexp_matchers.rb
roda-3.1.0 lib/roda/plugins/_symbol_regexp_matchers.rb
roda-3.0.0 lib/roda/plugins/_symbol_regexp_matchers.rb
roda-2.29.0 lib/roda/plugins/_symbol_regexp_matchers.rb