Create a new SplatNode
node.
Create a new StatementsNode
node.
Create a new StringNode
node.
Create a new SuperNode
node.
Create a new SymbolNode
node.
Create a new TrueNode
node.
Create a new WhenNode
node.
Create a new XStringNode
node.
Create a new YieldNode
node.
The default source object that gets attached to nodes and locations if no source is specified.
Temporarily turn off warnings. Intended for tests only.
Temporarily turn off warnings. Intended for tests only.
Remove any non-printable characters and make the text suitable for printing.
Displays an error statement
to the error output location. Asks a question
if given.
Displays a warning statement
to the warning output location. Asks a question
if given.
Invokes system, but silences all output.
Change the current process’s real and effective user ID to that specified by user. Returns the new user ID. Not available on all platforms.
[Process.uid, Process.euid] #=> [0, 0] Process::UID.change_privilege(31) #=> 31 [Process.uid, Process.euid] #=> [31, 31]
Set
the effective user ID, and if possible, the saved user ID of the process to the given user. Returns the new effective user ID. Not available on all platforms.
[Process.uid, Process.euid] #=> [0, 0] Process::UID.grant_privilege(31) #=> 31 [Process.uid, Process.euid] #=> [0, 31]
Returns true
if the real and effective user IDs of a process may be exchanged on the current platform.
Returns true
if the current platform has saved user ID functionality.
Change the current process’s real and effective group ID to that specified by group. Returns the new group ID. Not available on all platforms.
[Process.gid, Process.egid] #=> [0, 0] Process::GID.change_privilege(33) #=> 33 [Process.gid, Process.egid] #=> [33, 33]