mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
[DOC] Tweaks for String#gsub!
This commit is contained in:
parent
409da39afb
commit
72b8bb4caf
1 changed files with 4 additions and 7 deletions
11
string.c
11
string.c
|
@ -6576,15 +6576,12 @@ str_gsub(int argc, VALUE *argv, VALUE str, int bang)
|
|||
* gsub!(pattern) {|match| ... } -> self or nil
|
||||
* gsub!(pattern) -> an_enumerator
|
||||
*
|
||||
* Performs the specified substring replacement(s) on +self+;
|
||||
* returns +self+ if any replacement occurred, +nil+ otherwise.
|
||||
* Like String#gsub, except that:
|
||||
*
|
||||
* See {Substitution Methods}[rdoc-ref:String@Substitution+Methods].
|
||||
*
|
||||
* Returns an Enumerator if no +replacement+ and no block given.
|
||||
*
|
||||
* Related: String#sub, String#gsub, String#sub!.
|
||||
* - Performs substitutions in +self+ (not in a copy of +self+).
|
||||
* - Returns +self+ if any characters are removed, +nil+ otherwise.
|
||||
*
|
||||
* Related: see {Modifying}[rdoc-ref:String@Modifying].
|
||||
*/
|
||||
|
||||
static VALUE
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue