查看网站首页
查看网站首页
查看 sitemap.xml
✏️ 正在编辑: %5b%5d%3d-i.yaml
路径:
/opt/alt/ruby18/share/ri/1.8/system/String/%5b%5d%3d-i.yaml
提示:
您可以编辑任何文件(包括二进制文件),但请注意不当修改可能导致文件损坏。
--- !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
💾 保存文件
← 返回文件管理器