Results for: "Array.new"

Internal interface to Random; Generate random data n bytes.

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

No documentation available
No documentation available

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.

Terminates the RubyGems process with the given exit_code

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]

Example:

x.foo += 42
         ^^

Example:

x[1] += 42
  ^^^^^^^^

def foo(&bar); end

^^^^

A block’s parameters.

def foo(…); bar(…); end

^^^

-> { it } ^^^^^^^^^

-> { _1 + _2 } ^^^^^^^^^^^^^^

def foo(bar = 1); end

^^^^^^^

foo = 1 and bar => ^foo

^^^^

def foo(bar); end

^^^

def foo(*bar); end

^^^^

def foo(*); end

^

def foo(&bar); end

^^^^

A block’s parameters.

def foo(…); bar(…); end

^^^

-> { _1 + _2 } ^^^^^^^^^^^^^^

def foo(bar = 1); end

^^^^^^^
Search took: 4ms  ·  Total Results: 3535