Class: Bits::PosixUser

Inherits:
User
  • Object
show all
Defined in:
lib/bits/user.rb

Instance Method Summary collapse

Instance Method Details

#superuser?Boolean

Returns:

  • (Boolean)


9
10
11
# File 'lib/bits/user.rb', line 9

def superuser?
  Process.uid == 0
end