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
/
Actions
/
//opt/alt/ruby27/share/ri/system/Bundler/Thor/Actions/gsub_file-i.ri
U:RDoc::AnyMethod[iI"gsub_file:ETI"%Bundler::Thor::Actions#gsub_file;TF:privateo:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"4Run a regular expression replacement on a file.;To:RDoc::Markup::BlankLine S:RDoc::Markup::Heading: leveli : textI"Parameters;To:RDoc::Markup::List: @type: NOTE:@items[ o:RDoc::Markup::ListItem:@label[I"path<String>;T; [o; ; [I"#path of the file to be changed;To;;[I"flag<Regexp|String>;T; [o; ; [I"(the regexp or string to be replaced;To;;[I"replacement<String>;T; [o; ; [I"2the replacement, can be also given as a block;To;;[I"config<Hash>;T; [o; ; [I"7give :verbose => false to not log the status, and ;TI"L:force => true, to force the replacement regardless of runner behavior.;T@S;; i ;I"Example;T@o:RDoc::Markup::Verbatim; [ I"mgsub_file 'app/controllers/application_controller.rb', /#\s*(filter_parameter_logging :password)/, '\1' ;TI" ;TI"3gsub_file 'README', /rake/, :green do |match| ;TI"& match << " no more. Use thor!" ;TI"end;T:@format0: @fileI"Blib/bundler/vendor/thor/lib/thor/actions/file_manipulation.rb;T:0@omit_headings_from_table_of_contents_below000[ I" (path, flag, *args, &block);T@9FI"Actions;TcRDoc::NormalModule00