Module: Kernel

Defined in:
lib/god.rb

Instance Method Summary collapse

Instance Method Details

#abort(text = nil) ⇒ Object



113
114
115
116
117
# File 'lib/god.rb', line 113

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

#abort_origObject



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

alias_method :abort_orig, :abort

#exit(code = 0) ⇒ Object



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

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

#exit_origObject



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

alias_method :exit_orig, :exit