Method: RuboCop::AST::ForNode#body

Defined in:
lib/rubocop/ast/node/for_node.rb

#bodyNode?

Returns the body of the ‘for` loop.

Returns:

  • (Node, nil)

    The body of the ‘for` loop.



48
49
50
# File 'lib/rubocop/ast/node/for_node.rb', line 48

def body
  node_parts[2]
end