APIdock / Ruby
/
method

append

ruby latest stable - Class: List

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v1_8_7_330) is shown here.

append(*args)
public

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)
# File lib/optparse.rb, line 594
 def append(*args)
 update(*args)
 @list.push(args[0])
 end

AltStyle によって変換されたページ (->オリジナル) /