Ruby Arguable Functions

EditRocket provides the following information on Arguable functions in the Ruby source code builder.

extend_object(obj) - Initializes instance variable.

getopts(*args) - Substitution of getopts is possible as follows. Also see OptionParser#getopts.

new(*args) -

options=(opt) - Sets OptionParser object, when opt is false or nil, methods OptionParser::Arguable#options and OptionParser::Arguable#options= are undefined. Thus, there is no ways to access the OptionParser object via the receiver object.

options() - Actual OptionParser object, automatically created if nonexistent.

order!(&blk) - Parses self destructively in order and returns self containing the rest arguments left unparsed.

parse!() - Parses self destructively and returns self containing the rest arguments left unparsed.

permute!() - Parses self destructively in permutation mode and returns self containing the rest arguments left unparsed.