set_options

set_options(*arguments) Instance Public methods Set options. Takes the same argument as ::new. Raises a RuntimeError if option processing has already started.

ordering=

ordering=(ordering) Instance Public methods Set the handling of the ordering of options and arguments. A RuntimeError is raised if option processing has already started. The supplied value must be a member of GetoptLong::ORDERINGS. It alters the processing of options as follows: REQUIRE_ORDER : Options are required to occur before non-options. Processing of options ends as soon as a word is encountered that has not been preceded by an appropriate option flag. For example, if -a and

get_option

get_option() Instance Public methods `get_option' is an alias of `get'. get

get

get() Instance Public methods Get next option name and its argument, as an Array of two elements. The option name is always converted to the first (preferred) name given in the original options to ::new. Example: ['âoption', 'value'] Returns nil if the processing is complete (as determined by STATUS_TERMINATED). get_option

error_message

error_message() Instance Public methods Return the appropriate error message in POSIX-defined format. If no error has occurred, returns nil.

each_option

each_option() Instance Public methods `each_option' is an alias of `each'. each

each

each() Instance Public methods Iterator version of `get'. The block is called repeatedly with two arguments: The first is the option name. The second is the argument which followed it (if any). Example: ('âopt', 'value') The option name is always converted to the first (preferred) name given in the original options to ::new. each_option

new

new(*arguments) Class Public methods Set up option processing. The options to support are passed to new() as an array of arrays. Each sub-array contains any number of String option names which carry the same meaning, and one of the following flags: GetoptLong::NO_ARGUMENT Option does not take an argument. GetoptLong::REQUIRED_ARGUMENT Option always takes an argument. GetoptLong::OPTIONAL_ARGUMENT Option may or may not take an argument. The first option name is conside

win_platform?

win_platform?() Class Public methods Is this a windows platform?

user_home

user_home() Class Public methods The home directory for the user.