to_proc

prc.to_proc â prc Instance Public methods Part of the protocol for converting objects to Proc objects. Instances of class Proc simply return themselves.

to_s

prc.to_s â string Instance Public methods Returns the unique identifier for this proc, along with an indication of where the proc was defined. inspect

yield

prc.call(params,...) â objprc[params,...] â objprc.(params,...) â obj Instance Public methods Invokes the block, setting the block's parameters to the values in params using something close to method calling semantics. Generates a warning if multiple values are passed to a proc that expects just one (previously this silently converted the parameters to an array). Note that prc.() invokes prc.call() with the parameters given. It's a syntax sugar to hide âcallâ. For

change_privilege

Process::GID.change_privilege(group) â fixnum Class Public methods 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]

eid

Process.egid â fixnumProcess::GID.eid â fixnumProcess::Sys.geteid â fixnum Class Public methods Returns the effective group ID for this process. Not available on all platforms. Process.egid #=> 500

from_name

from_name(p1) Class Public methods

grant_privilege

Process::GID.grant_privilege(group) â fixnumProcess::GID.eid = group â fixnum Class Public methods Set the effective group ID, and if possible, the saved group ID of the process to the given group. Returns the new effective group ID. Not available on all platforms. [Process.gid, Process.egid] #=> [0, 0] Process::GID.grant_privilege(31) #=> 33 [Process.gid, Process.egid] #=> [0, 33]

re_exchange

Process::GID.re_exchange â fixnum Class Public methods Exchange real and effective group IDs and return the new effective group ID. Not available on all platforms. [Process.gid, Process.egid] #=> [0, 33] Process::GID.re_exchange #=> 0 [Process.gid, Process.egid] #=> [33, 0]

re_exchangeable?

Process::GID.re_exchangeable? â true or false Class Public methods Returns true if the real and effective group IDs of a process may be exchanged on the current platform.

rid

Process.gid â fixnumProcess::GID.rid â fixnumProcess::Sys.getgid â fixnum Class Public methods Returns the (real) group ID for this process. Process.gid #=> 500