lib/tty/exit.rb
def exit_reserved?(code)
      (code >= Code::SUCCESS && code <= Code::SHELL_MISUSE) ||
        (code >= Code::USAGE_ERROR && code <= Code::CONFIG_ERROR) ||
        (code >= Code::CANNOT_EXECUTE && code <= Code::USER2)
    end
# Check if an exit code is already defined by Unix system
#
# @param [Integer] code
#   the code to check
#
# @return [Boolean]
#
# @api public
Check if an exit code is already defined by Unix system
Check if an exit code is already defined by Unix system
def exit_reserved?(code)
      (code >= Code::SUCCESS && code <= Code::SHELL_MISUSE) ||
        (code >= Code::USAGE_ERROR && code <= Code::CONFIG_ERROR) ||
        (code >= Code::CANNOT_EXECUTE && code <= Code::USER2)
    end
def exit_reserved? ( code ) ( code >= Code :: SUCCESS && code <= Code :: SHELL_MISUSE ) || ( code >= Code :: USAGE_ERROR && code <= Code :: CONFIG_ERROR ) || ( code >= Code :: CANNOT_EXECUTE && code <= Code :: USER2 ) end
Check if an exit code is already defined by Unix system
Check if an exit code is already defined by Unix system
None
Boolean
code
code the code to check
code the code to check
api
None