Module: Kernel

Defined in:
lib/god.rb

Instance Method Summary collapse

Instance Method Details

#abort(text = nil) ⇒ Object



98
99
100
101
102
# File 'lib/god.rb', line 98

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

#abort_origObject



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

alias_method :abort_orig, :abort

#exit(code = 0) ⇒ Object



106
107
108
109
# File 'lib/god.rb', line 106

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

#exit_origObject



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

alias_method :exit_orig, :exit