Module: Kernel
- Defined in:
- lib/god.rb
Instance Method Summary collapse
Instance Method Details
#abort(text = nil) ⇒ Object
115 116 117 118 119 |
# File 'lib/god.rb', line 115 def abort(text = nil) $run = false applog(nil, :error, text) if text exit(1) end |
#abort_orig ⇒ Object
113 |
# File 'lib/god.rb', line 113 alias_method :abort_orig, :abort |
#exit(code = 0) ⇒ Object
123 124 125 126 |
# File 'lib/god.rb', line 123 def exit(code = 0) $run = false exit_orig(code) end |
#exit_orig ⇒ Object
121 |
# File 'lib/god.rb', line 121 alias_method :exit_orig, :exit |