Sha256: d7f4916f6f5c60bc4896893f3eb7b67e4b97524270eda587120953aab9515286
Contents?: true
Size: 336 Bytes
Versions: 24
Compression:
Stored size: 336 Bytes
Contents
# -*- encoding: UTF-8 -*- # This module extends the original Kernel module. Note that methods cannot be added via the +include+ method in this case. # module Kernel #:nodoc: # Checks whether the AI was executed with superuser rights (a.k.a. +sudo+). Returns +true+ or +false+. # def superuser? Process.uid == 0 end end
Version data entries
24 entries across 24 versions & 1 rubygems