class RuboCop::Cop::InternalAffairs::NodeDestructuring

Checks that node destructuring is using the node extensions.

@example Using splat expansion

# bad
_receiver, method_name, _arguments = send_node.children

# bad
_receiver, method_name, _arguments = *send_node

# good
method_name = send_node.method_name