Logo

Programming-Idioms

History of Idiom 87 > diff from v18 to v19

Edit summary for version 19 by steenslag:
[Ruby] exit_ is exactly the same as Kernel.exit(true)

Version 18

2016-12-23, 06:11:32

Version 19

2016-12-24, 21:22:20

Idiom #87 Stop program

Exit immediatly.
If some extra cleanup work is executed by the program runtime (not by the OS itself), describe it.

Idiom #87 Stop program

Exit immediatly.
If some extra cleanup work is executed by the program runtime (not by the OS itself), describe it.

Code
Kernel.exit(true)
Code
exit
Doc URL
http://ruby-doc.org/core-2.1.1/Kernel.html#method-i-exit
Doc URL
http://ruby-doc.org/core-2.1.1/Kernel.html#method-i-exit