class RuboCop::Cop::Style::FormatStringToken

def token_ranges(contents)

def token_ranges(contents)
  while (offending_match = match_token(contents))
    detected_style, *range = *offending_match
    token, contents = split_token(contents, *range)
    yield(detected_style, token)
  end
end