Class: Sys

Inherits:
Object
  • Object
show all
Defined in:
util/sys.rb

Overview

System is used to exit among other things.

Author:

  • Joseph Beck

Class Method Summary collapse

Class Method Details

.exit_p(status) ⇒ NilClass

Exits the program with a certain status.

Parameters:

  • (Integer)

Returns:

  • (NilClass)


14
15
16
17
18
19
20
# File 'util/sys.rb', line 14

def self.exit_p(status)
  begin
    exit status
  rescue SystemExit
    p 'exiting'
  end
end