Module: Kernel

Defined in:
lib/god.rb

Instance Method Summary collapse

Instance Method Details

#abort(text = nil) ⇒ Object


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

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

#abort_origObject


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

alias_method :abort_orig, :abort

#exit(code = 0) ⇒ Object


133
134
135
136
# File 'lib/god.rb', line 133

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

#exit_origObject


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

alias_method :exit_orig, :exit