class RuboCop::AST::DefNode

def void_context?

Returns:
  • (Boolean) - whether the `def` node body is a void context
def void_context?
  method?(:initialize) || assignment_method?
end