Results for: "Array"

Displays a warning statement to the warning output location. Asks a question if given.

Terminates the RubyGems process with the given exit_code

SecureRandom.random_bytes generates a random binary string.

The argument n specifies the length of the result string.

If n is not specified or is nil, 16 is assumed. It may be larger in future.

The result may contain any byte: “x00” - “xff”.

require 'securerandom'

SecureRandom.random_bytes #=> "\xD8\\\xE0\xF4\r\xB2\xFC*WM\xFF\x83\x18\xF45\xB6"
SecureRandom.random_bytes #=> "m\xDC\xFC/\a\x00Uf\xB2\xB2P\xBD\xFF6S\x97"

If a secure random number generator is not available, NotImplementedError is raised.

No documentation available

Generates formatted random number from raw random bytes. See Random#rand.

Returns the description corresponding to the HTTP status code

WEBrick::HTTPStatus.reason_phrase 404
=> "Not Found"

Is code a client error status?

Is code a server error status?

Returns the description corresponding to the HTTP status code

WEBrick::HTTPStatus.reason_phrase 404
=> "Not Found"

Is code a client error status?

Is code a server error status?

Parses an HTTP header raw into a hash of header fields with an Array of values.

Parses an HTTP header raw into a hash of header fields with an Array of values.

Parses q values in value as used in Accept headers.

Parses q values in value as used in Accept headers.

Parses the query component of a URI in str

Parses the query component of a URI in str

Generates a random string of length len

Generates a random string of length len

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]

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]

Generates a valid JSON document from object obj and returns the result. If no valid JSON document can be created this method raises a GeneratorError exception.

Returns the generator of the group.

See the OpenSSL documentation for EC_GROUP_get0_generator()

No documentation available
No documentation available
Search took: 3ms  ·  Total Results: 1526