Inherits Exception / Reference / Object
Raised when a not_nil! assertion fails.
not_nil!
"hello".index('x').not_nil! # raises NilAssertionError ("hello" does not contain 'x')