--- !ruby/object:RI::MethodDescription 
aliases: []

block_params: ""
comment: 
- !ruby/struct:SM::Flow::P 
  body: "In place version of #rewrite. This version of method requires that the string be modified in place within the block."
- !ruby/struct:SM::Flow::VERB 
  body: "  # Reverse contents of &quot;message&quot;\n  File.rewrite(&quot;message&quot;) { |str| str.reverse! }\n\n  # Replace &quot;foo&quot; by &quot;bar&quot; in &quot;binary&quot;\n  File.rewrite(&quot;binary&quot;, &quot;b&quot;) { |str| str.gsub!(&quot;foo&quot;, &quot;bar&quot;) }\n"
full_name: File::rewrite!
is_singleton: true
name: rewrite!
params: (name, mode = "") {|| ...}
visibility: public
