use_paths

use_paths(home, *paths) Class Public methods Use the home and paths values for ::dir and ::path. Used mainly by the unit tests to provide environment isolation.

user_dir

user_dir() Class Public methods Path for gems in the user's home directory

user_home

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

win_platform?

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

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

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

each_option

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

error_message

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

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

get_option

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