module Roda::RodaPlugins::HeaderMatchers::RequestMethods

def match_user_agent(pattern)

regexp match groups.
Match the submitted user agent to the given pattern, capturing any
def match_user_agent(pattern)
  if (user_agent = @env["HTTP_USER_AGENT"]) && (match = pattern.match(user_agent))
    @captures.concat(match.captures)
  end
end