Sha256: 08f015b114ff1be5378d89a738a163bb68406a1d03023f6f41fa0d7803a889c6
Contents?: true
Size: 623 Bytes
Versions: 55
Compression:
Stored size: 623 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 private # 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
55 entries across 55 versions & 1 rubygems