module Roda::RodaPlugins::PathMatchers::RequestMethods
def match_extension(ext)
Match when the current segment ends with the given extension.
def match_extension(ext) match_suffix(".#{ext}") end
def match_prefix(prefix)
def match_prefix(prefix) consume(self.class.cached_matcher([:prefix, prefix]){/#{prefix}([^\\\/]+)/}) end
def match_suffix(suffix)
def match_suffix(suffix) consume(self.class.cached_matcher([:suffix, suffix]){/([^\\\/]+)#{suffix}/}) end