mirror of
https://github.com/ruby/ruby.git
synced 2026-01-26 20:19:19 +00:00
[DOC] Tweaks for String#gsub!
This commit is contained in:
parent
409da39afb
commit
72b8bb4caf
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…
x
Reference in New Issue
Block a user