Module: Kernel

Defined in:
lib/god.rb

Instance Method Summary collapse

Instance Method Details

#abort(text = nil) ⇒ Object



103
104
105
106
107
# File 'lib/god.rb', line 103

def abort(text = nil)
  $run = false
  applog(nil, :error, text) if text
  exit(1)
end

#abort_origObject



101
# File 'lib/god.rb', line 101

alias_method :abort_orig, :abort

#exit(code = 0) ⇒ Object



111
112
113
114
# File 'lib/god.rb', line 111

def exit(code = 0)
  $run = false
  exit_orig(code)
end

#exit_origObject



109
# File 'lib/god.rb', line 109

alias_method :exit_orig, :exit