Module: Kernel

Defined in:
lib/god.rb

Instance Method Summary collapse

Instance Method Details

#abort(text = nil) ⇒ Object



119
120
121
122
123
# File 'lib/god.rb', line 119

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

#abort_origObject



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

alias_method :abort_orig, :abort

#exit(code = 0) ⇒ Object



127
128
129
130
# File 'lib/god.rb', line 127

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

#exit_origObject



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

alias_method :exit_orig, :exit