Method: Kernel#abort
- Defined in:
- process.c
#abort ⇒ Object #abort(msg = nil) ⇒ Object
Terminates execution immediately, effectively by calling Kernel.exit(false)
.
If string argument msg
is given, it is written to STDERR prior to termination; otherwise, if an exception was raised, prints its message and backtrace.
4579 4580 4581 4582 4583 4584 |
# File 'process.c', line 4579 static VALUE f_abort(int c, const VALUE *a, VALUE _) { rb_f_abort(c, a); UNREACHABLE_RETURN(Qnil); } |