module RuboCop::AST::MethodDispatchNode

def block_literal?

Returns:
  • (Boolean) - whether the dispatched method has a block
def block_literal?
  parent&.block_type? && eql?(parent.send_node)
end