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 considered to be the preferred (canonical) name. Other than that, the elements of each sub-array can be in any order.

doc_ruby_on_rails
2015-04-11 17:54:22
Comments
Leave a Comment

Please login to continue.