class SystemExit
Raised by exit to initiate the termination of the script.
Public Class Methods
() → void
(string msg) → void
(true | false | int status, ?string msg) → void
Source
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.0.3/core/errors.rbs, line 661
def initialize: () -> void
| (string msg) -> void
| (true | false | int status, ?string msg) -> void
Create a new SystemExit exception with the given status and message. Status is true, false, or an integer. If status is not given, true is used.
Public Instance Methods
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.0.3/core/errors.rbs, line 671
def status: () -> Integer
Return the status value associated with this system exit.
() → bool
Source
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.0.3/core/errors.rbs, line 679
def success?: () -> bool
Returns true if exiting successful, false if not.