class RuboCop::AST::DefNode

def endless?

Returns:
  • (Boolean) - if the definition is without an `end` or not.
def endless?
  !loc.end
end