Sha256: 1d56cc0a5f8c25a3bba5472dce81d22d3773447fa47a2e8a3b6b318ff7c84de9

Contents?: true

Size: 1.47 KB

Versions: 1

Compression:

Stored size: 1.47 KB

Contents

U:RDoc::AnyMethod[iI"insert_into_file:EFI",Bundler::Thor::Actions#insert_into_file;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph;	[I"KInjects the given content into a file. Different from gsub_file, this ;TI"method is reversible.;To:RDoc::Markup::BlankLineS:RDoc::Markup::Heading:
leveli	:	textI"Parameters;To:RDoc::Markup::List:
@type:	NOTE:@items[o:RDoc::Markup::ListItem:@label[I"destination<String>;T;	[o;
;	[I"*Relative path to the destination root;To;;[I"data<String>;T;	[o;
;	[I"6Data to add to the file. Can be given as a block.;To;;[I"config<Hash>;T;	[o;
;	[I"?give :verbose => false to not log the status and the flag ;TI"=for injection (:after or :before) or :force => true for ;TI"/insert two or more times the same content.;T@S;;
i	;I"
Examples;T@o:RDoc::Markup::Verbatim;	[I"tinsert_into_file "config/environment.rb", "config.gem :thor", :after => "Rails::Initializer.run do |config|\n"
;TI"
;TI"cinsert_into_file "config/environment.rb", :after => "Rails::Initializer.run do |config|\n" do
;TI"6  gems = ask "Which gems would you like to add?"
;TI"F  gems.split(" ").map{ |gem| "  config.gem :#{gem}" }.join("\n")
;TI"end;T:@format0:
@fileI"Alib/bundler/vendor/thor/lib/thor/actions/inject_into_file.rb;T:0@omit_headings_from_table_of_contents_below000[[I"inject_into_file;To;;	[;@5;0I"!(destination, *args, &block);T@5FI"Actions;FcRDoc::NormalModule00

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/doc/bundler-1.14.6/ri/Bundler/Thor/Actions/insert_into_file-i.ri