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

block_params: 
comment: 
- !ruby/struct:SM::Flow::P 
  body: Element Assignment---Replaces some or all of the content of <em>str</em>. The portion of the string affected is determined using the same criteria as <tt>String#[]</tt>. If the replacement string is not the same length as the text it is replacing, the string will be adjusted accordingly. If the regular expression or string is used as the index doesn't match a position in the string, <tt>IndexError</tt> is raised. If the regular expression form is used, the optional second <tt>Fixnum</tt> allows you to specify which portion of the match to replace (effectively using the <tt>MatchData</tt> indexing rules. The forms that take a <tt>Fixnum</tt> will raise an <tt>IndexError</tt> if the value is out of range; the <tt>Range</tt> form will raise a <tt>RangeError</tt>, and the <tt>Regexp</tt> and <tt>String</tt> forms will silently ignore the assignment.
full_name: String#[]=
is_singleton: false
name: "[]="
params: |
  str[fixnum] = fixnum
  str[fixnum] = new_str
  str[fixnum, fixnum] = new_str
  str[range] = aString
  str[regexp] = new_str
  str[regexp, fixnum] = new_str
  str[other_str] = new_str

visibility: public
