accept

accept(t, pat = /.*/m, &block) Instance Public methods See OptionParser#accept.

append

append(*args) Instance Public methods Appends switch at the tail of the list, and associates short, long and negated long options. Arguments are: switch OptionParser::Switch instance to be inserted. short_opts List of short style options. long_opts List of long style options. nolong_opts List of long style options with âno-â prefix. append(switch, short_opts, long_opts, nolong_opts)

complete

complete(id, opt, icase = false, *pat, &block) Instance Public methods Searches list id for opt and the optional patterns for completion pat. If icase is true, the search is case insensitive. The result is returned or yielded if a block is given. If it isn't found, nil is returned.

each_option

each_option(&block) Instance Public methods Iterates over each option, passing the option to the block.

prepend

prepend(*args) Instance Public methods Inserts switch at the head of the list, and associates short, long and negated long options. Arguments are: switch OptionParser::Switch instance to be inserted. short_opts List of short style options. long_opts List of long style options. nolong_opts List of long style options with âno-â prefix. prepend(switch, short_opts, long_opts, nolong_opts)

reject

reject(t) Instance Public methods See OptionParser#reject.

search

search(id, key) Instance Public methods Searches key in id list. The result is returned or yielded if a block is given. If it isn't found, nil is returned.

summarize

summarize(*args, &block) Instance Public methods Creates the summary table, passing each line to the block (without newline). The arguments args are passed along to the summarize method which is called on every option.

filter_backtrace

filter_backtrace(array) Class Public methods

new

new(*args) Class Public methods