method

from_name

Importance_1
Ruby latest stable (v2_5_5) - 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.