Linux heracles.o2switch.net 4.18.0-553.62.1.lve.el8.x86_64 #1 SMP Mon Jul 21 17:50:35 UTC 2025 x86_64
/
opt
/
alt
/
ruby27
/
share
/
ri
/
system
/
Bundler
/
Thor
/
Shell
/
Basic
/
//opt/alt/ruby27/share/ri/system/Bundler/Thor/Shell/Basic/ask-i.ri
U:RDoc::AnyMethod[iI"ask:ETI"$Bundler::Thor::Shell::Basic#ask;TF:privateo:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"8Asks something to the user and receives a response.;To:RDoc::Markup::BlankLine o; ; [I"FIf a default value is specified it will be presented to the user ;TI"Gand allows them to select that value with an empty response. This ;TI"9option is ignored when limited answers are supplied.;T@o; ; [ I"AIf asked to limit the correct responses, you can pass in an ;TI"Darray of acceptable answers. If one of those is not supplied, ;TI"Dthey will be shown a message stating that one of those answers ;TI"-must be given and re-asked the question.;T@o; ; [I"FIf asking for sensitive information, the :echo option can be set ;TI"-to false to mask user input from $stdin.;T@o; ; [ I"BIf the required input is a path, then set the path option to ;TI"Ctrue. This will enable tab completion for file paths relative ;TI">to the current working directory on systems that support ;TI"Readline.;T@S:RDoc::Markup::Heading: leveli : textI"Example;To; ; [I"ask("What is your name?");T@o; ; [I"Jask("What is the planet furthest from the sun?", :default => "Pluto");T@o; ; [I"kask("What is your favorite Neopolitan flavor?", :limited_to => ["strawberry", "chocolate", "vanilla"]);T@o; ; [I"2ask("What is your password?", :echo => false);T@o; ; [I":ask("Where should the file be saved?", :path => true);T: @fileI"4lib/bundler/vendor/thor/lib/thor/shell/basic.rb;T:0@omit_headings_from_table_of_contents_below000[ I"(statement, *args);T@5FI" Basic;TcRDoc::NormalClass00