Class | OptionParser::Switch |
In: |
lib/optparse.rb
|
Parent: | Object |
Individual switch class. Not important to the user.
Defined within Switch are several Switch-derived classes: NoArgument, RequiredArgument, etc.
arg | [R] | |
block | [R] | |
conv | [R] | |
desc | [R] | |
long | [R] | |
pattern | [R] | |
short | [R] |
Guesses argument style from arg. Returns corresponding OptionParser::Switch class (OptionalArgument, etc.).
Produces the summary text. Each line of the summary is yielded to the block (without newline).
sdone: | Already summarized short style options keyed hash. |
ldone: | Already summarized long style options keyed hash. |
width: | Width of left side (option part). In other words, the right side (description part) starts after width columns. |
max: | Maximum width of left side -> the options are filled within max columns. |
indent: | Prefix string indents all summarized lines. |
ruby-doc.org is a service of James Britt and Neurogami, a Ruby application development company in Phoenix, AZ.
Documentation content on ruby-doc.org is provided by remarkable members of the Ruby community.
For more information on the Ruby programming language, visit ruby-lang.org.
Want to help improve Ruby's API docs? See Ruby Documentation Guidelines.