module

Miniss::Etc

Rudimentary implementation of Ruby's Etc module.

The Etc module provides access to information typically stored in files in the /etc directory on Unix systems.

Only implements the methods required for miniss.

Class methods

getpwuid(uid) : String

Returns the username with the given integer uid.

Returns an empty string if the user is not found in /etc/passwd.

NOTE: Ruby's getpwuid().

Example:

Miniss::Etc.getpwuid(0) # => "root"
Source