Results for: "OptionParser"

No documentation available

Returns the imaginary part of the matrix.

Matrix[[Complex(1,2), Complex(0,1), 0], [1, 2, 3]]
  => 1+2i  i  0
        1  2  3
Matrix[[Complex(1,2), Complex(0,1), 0], [1, 2, 3]].imaginary
  =>   2i  i  0
        0  0  0
No documentation available

The coerce method provides support for Ruby type coercion. This coercion mechanism is used by Ruby to handle mixed-type numeric operations: it is intended to find a compatible common type between the two operands of the operator. See also Numeric#coerce.

No documentation available

Returns a copy of the vector.

The coerce method provides support for Ruby type coercion. This coercion mechanism is used by Ruby to handle mixed-type numeric operations: it is intended to find a compatible common type between the two operands of the operator. See also Numeric#coerce.

Terminates option parsing. Optional parameter arg is a string pushed back to be the first non-option argument.

No documentation available
No documentation available

Directs to accept specified class t. The argument string is passed to the block in which it should be converted to the desired class.

t

Argument class specifier, any object including Class.

pat

Pattern for argument, defaults to t if it responds to match.

accept(t, pat, &block)

See accept.

Heading banner preceding summary.

Release code

Returns version string from program_name, version and release.

No documentation available

Subject of on / on_head, accept / reject

Subject of on_tail.

Puts option summary into to and returns to. Yields each line if a block is given.

to

Output destination, which must have method <<. Defaults to [].

width

Width of left side, defaults to @summary_width.

max

Maximum length allowed for left side, defaults to width - 1.

indent

Indentation, defaults to @summary_indent.

Add option switch and handler. See make_switch for an explanation of parameters.

Parses command line arguments argv in order. When a block is given, each non-option argument is yielded.

Returns the rest of argv left unparsed.

Same as order, but removes switches destructively. Non-option arguments remain in argv.

Parses command line arguments argv in permutation mode and returns list of non-option arguments.

Same as permute, but removes switches destructively. Non-option arguments remain in argv.

Parses environment variable env or its uppercase with splitting like a shell.

env defaults to the basename of the program.

Search took: 4ms  ·  Total Results: 4164