module Roda::RodaPlugins::MatchAffix::RequestClassMethods
Private Instance Methods
Source
# File lib/roda/plugins/match_affix.rb, line 47 def consume_pattern(pattern) /\A#{roda_class.opts[:match_prefix] || "/"}(?:#{pattern})#{roda_class.opts[:match_suffix] || "(?=\/|\z)"}/ end
Use the match prefix and suffix provided when loading the plugin, or fallback to Roda’s default prefix/suffix if one was not provided.