class RuboCop::AST::ForNode

def do?

Returns:
  • (Boolean) - whether the `for` node has a `do` keyword
def do?
  loc.begin&.is?('do')
end