Switch the effective and real user IDs of the current process. If a block is given, the user IDs will be switched back after the block is executed. Returns the new effective user ID if called without a block, and the return value of the block if one is given.
Switch the effective and real group IDs of the current process. If a block is given, the group IDs will be switched back after the block is executed. Returns the new effective group ID if called without a block, and the return value of the block if one is given.
@@foo = 1 ^^^^^^^^^
@@foo, = bar ^^^^^
Foo += bar ^^^^^^^^^^^
Foo &&= bar ^^^^^^^^^^^^
Foo ||= bar ^^^^^^^^^^^^
$foo = 1 ^^^^^^^^
@foo = 1 ^^^^^^^^
def foo(**bar); end ^^^^^
def foo(**); end ^^
def foo(**nil); end ^^^^^
def foo(bar:); end ^^^^
@@foo = 1 ^^^^^^^^^ @@foo, @@bar = 1 ^^^^^ ^^^^^
@@foo, = bar ^^^^^
Foo += bar ^^^^^^^^^^^
Foo &&= bar ^^^^^^^^^^^^
Foo ||= bar ^^^^^^^^^^^^
$foo = 1 ^^^^^^^^ $foo, $bar = 1 ^^^^ ^^^^
@foo = 1 ^^^^^^^^ @foo, @bar = 1 ^^^^ ^^^^