Module: Kernel
- Defined in:
- lib/csd/extensions/core/kernel.rb
Overview
This module extends the original Kernel module. Note that methods cannot be added via the include method in this case.
Instance Method Summary collapse
-
#superuser? ⇒ Boolean
Checks whether the AI was executed with superuser rights (a.k.a.
sudo).
Instance Method Details
#superuser? ⇒ Boolean
Checks whether the AI was executed with superuser rights (a.k.a. sudo). Returns true or false.
9 10 11 |
# File 'lib/csd/extensions/core/kernel.rb', line 9 def superuser? Process.uid == 0 end |