Module

Arguable

Extends command line arguments array (ARGV) to parse itself.

Public Methods
extend_object Initializes instance variable.
getopts Substitution of getopts is possible as follows. Also see OptionParser#getopts.
new
options Actual OptionParser object, automatically created if nonexistent.
options= 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.
order! 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.
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.