The Process::UID
module contains a collection of module functions which can be used to portably get, set, and switch the current process’s real, effective, and saved user IDs.
The Process::GID
module contains a collection of module functions which can be used to portably get, set, and switch the current process’s real, effective, and saved group IDs.
The Process::Sys
module contains UID
and GID
functions which provide direct bindings to the system calls of the same names instead of the more-portable versions of the same functionality found in the Process
, Process::UID
, and Process::GID
modules.
returns the socket type as an integer.
Addrinfo.tcp("localhost", 80).protocol == Socket::IPPROTO_TCP #=> true
Add a new protocol to the DRbProtocol
module.
Add a new protocol to the DRbProtocol
module.
Processes the topmost available {RequirementState} on the stack @return [void]
Convert self
to locale encoding
Returns true
if the underlying file descriptor of ios will be closed automatically at its finalization, otherwise false
.
Sets auto-close flag.
f = open("/dev/null") IO.for_fd(f.fileno) # ... f.gets # may cause IOError f = open("/dev/null") IO.for_fd(f.fileno).autoclose = true # ... f.gets # won't cause IOError
Convert self
to locale encoding
Convert self
to locale encoding
Returns the ALPN protocol string that was finally selected by the client during the handshake.
Returns the protocol string that was finally selected by the client during the handshake.
Cleans up uninstalled files and invalid gem specifications
Creates a single-row matrix where the values of that row are as given in row
.
Matrix.row_vector([4,5,6]) => 4 5 6
Returns an array of the row vectors of the matrix. See Vector
.
Sets the default proc to be executed on each failed key lookup.
h.default_proc = proc do |hash, key| hash[key] = key + key end h[2] #=> 4 h["cat"] #=> "catcat"