Method: RuboCop::AST::ForNode#void_context?

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

#void_context?true

Checks whether this node body is a void context. Always ‘true` for `for`.

Returns:

  • (true)

    whether the ‘for` node body is a void context



27
28
29
# File 'lib/rubocop/ast/node/for_node.rb', line 27

def void_context?
  true
end