module RuboCop::Cop::IndexMethod

def extract_captures(match)

def extract_captures(match)
  argname, body_expr = *match
  Captures.new(argname, body_expr)
end