Ruby GetoptLong Functions
EditRocket provides the following information on GetoptLong functions in the Ruby source code builder.
each() - Iterator version of `get'.
each_option() - "Alias for #each"
error_message() - Return the appropriate error message in POSIX-defined format. If no error has occurred, returns nil.
get() - Get next option name and its argument, as an Array of two elements.
get_option() - "Alias for #get"
new(*arguments) - Set up option processing.
ordering=(ordering) - Set the handling of the ordering of options and arguments. A RuntimeError is raised if option processing has already started.
set_options(*arguments) - Set options. Takes the same argument as GetoptLong.new.
terminate() - Explicitly terminate option processing.
terminated?() - Returns true if option processing has terminated, false otherwise.