Module: Process

Defined in:
lib/main/stdext.rb

Class Method Summary collapse

Class Method Details

.abort(message = nil) ⇒ Object


27
28
29
30
31
32
33
34
# File 'lib/main/stdext.rb', line 27

def abort(message = nil)
  if message
    message = message.to_s
    message.singleton_class{ fattr 'abort' => true } unless message.frozen?
    STDERR.puts message
  end
  exit 1
end