D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
OptionParser
/
Filename :
make_switch-i.ri
back
Copy
U:RDoc::AnyMethod[iI"make_switch:ETI"OptionParser#make_switch;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I";Creates an option from the given parameters +params+. ;TI"CSee {Parameters for New Options}[optparse/option_params.rdoc].;To:RDoc::Markup::BlankLine o; ; [ I"AThe block, if given, is the handler for the created option. ;TI"AWhen the option is encountered during command-line parsing, ;TI"Ithe block is called with the argument given for the option, if any. ;TI"NSee {Option Handlers}[optparse/option_params.rdoc#label-Option+Handlers].;T: @fileI"lib/optparse.rb;T:0@omit_headings_from_table_of_contents_below0I"&make_switch(params, block = nil) ;T0[ I"(opts, block = nil);T@FI"OptionParser;TcRDoc::NormalClass00