method

from_name

Importance_1
v2_5_5 - Show latest stable - 0 notes - Class: Process::UID
from_name(p1) public

Get the user ID by the name. If the user is not found, ArgumentError will be raised.

Process::UID.from_name("root") #=> 0
Process::UID.from_name("nosuchuser") #=> can't find user for nosuchuser (ArgumentError)
Show source
Register or log in to add new notes.