Module: Kernel
- Defined in:
- lib/god.rb
Instance Method Summary collapse
Instance Method Details
#abort(text = nil) ⇒ Object
124 125 126 127 128 |
# File 'lib/god.rb', line 124 def abort(text = nil) $run = false applog(nil, :error, text) if text exit(1) end |
#abort_orig ⇒ Object
122 |
# File 'lib/god.rb', line 122 alias_method :abort_orig, :abort |
#exit(code = 0) ⇒ Object
132 133 134 135 |
# File 'lib/god.rb', line 132 def exit(code = 0) $run = false exit_orig(code) end |
#exit_orig ⇒ Object
130 |
# File 'lib/god.rb', line 130 alias_method :exit_orig, :exit |