File: //usr/local/rvm/gems/ruby-3.0.2/doc/thor-1.1.0/ri/Thor/Actions/gsub_file-i.ri
U:RDoc::AnyMethod[iI"gsub_file:ETI"Thor::Actions#gsub_file;TF:publico: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"K:force => true, to force the replacement regardles 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"*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