Results for: "OptionParser"

Sets limits for the current process for the given resource to cur_limit (soft limit) and max_limit (hard limit); returns nil.

Argument resource specifies the resource whose limits are to be set; the argument may be given as a symbol, as a string, or as a constant beginning with Process::RLIMIT_ (e.g., :CORE, 'CORE', or Process::RLIMIT_CORE.

The resources available and supported are system-dependent, and may include (here expressed as symbols):

Arguments cur_limit and max_limit may be:

This example raises the soft limit of core size to the hard limit to try to make core dump possible:

Process.setrlimit(:CORE, Process.getrlimit(:CORE)[1])

Not available on all platforms.

Detaches the current process from its controlling terminal and runs it in the background as system daemon; returns zero.

By default:

If optional argument nochdir is true, does not change the current working directory.

If optional argument noclose is true, does not redirect $stdin, $stdout, or $stderr.

Returns a Process::Tms structure that contains user and system CPU times for the current process, and for its children processes:

Process.times
# => #<struct Process::Tms utime=55.122118, stime=35.533068, cutime=0.0, cstime=0.002846>

The precision is platform-defined.

Returns the name of the script being executed. The value is not affected by assigning a new value to $0.

This method first appeared in Ruby 2.1 to serve as a global variable free means to get the script name.

No documentation available

() ^^

(1) ^^^

1r ^^

Visit the interpolated content of the string-like node.

def foo((bar, baz)); end

^^^^^^^^^^

() ^^

(1) ^^^

1r ^^

Pattern constants get wrapped in another layer of :const.

/foo #{bar}/ ^^^^^^^^^^^^

/foo #{bar}/ ^^^^^^^^^^^^

No documentation available
No documentation available
No documentation available
No documentation available
No documentation available

Foo += bar ^^^^^^^^^^^

Foo::Bar, = baz ^^^^^^^^

def foo(**bar); end

^^^^^

def foo(**); end

^^

Visit the targets of a multi-target node.

def foo(**nil); end

^^^^^

def foo(bar:); end

^^^^
Search took: 3ms  ·  Total Results: 3731