Ruby OptionParser::Switch Functions
EditRocket provides the following information on OptionParser::Switch functions in the Ruby source code builder.
guess(arg) - Guesses argument style from arg. Returns corresponding OptionParser::Switch class (OptionalArgument, etc.).
incompatible_argument_styles(arg, t) -
new(pattern = nil, conv = nil, short = nil, long = nil, arg = nil, desc = ([] if short or long) -
pattern() -
summarize(sdone = [], ldone = [], width = 1, max = width - 1, indent = "") - Produces the summary text. Each line of the summary is yielded to the block (without newline).