class RuboCop::Cop::Style::MethodCalledOnDoEndBlock

def on_block(node)

def on_block(node)
  method, _args, _body = *node
  # If the method that is chained on the do...end block is itself a
  # method with a block, we allow it. It's pretty safe to assume that
  # these calls are not missed by anyone reading code. We also want to
  # avoid double reporting of offenses checked by the
  # MultilineBlockChain cop.
  ignore_node(method)
end