mirror of
https://github.com/ruby/ruby.git
synced 2026-01-27 04:24:23 +00:00
[DOC] Tweaks for String#scrub! (#14893)
This commit is contained in:
parent
42c0409781
commit
862b42a52c
Notes:
git
2025-10-21 20:47:17 +00:00
Merged-By: peterzhu2118 <peter@peterzhu.ca>
12
string.c
12
string.c
@ -11927,11 +11927,15 @@ str_scrub(int argc, VALUE *argv, VALUE str)
|
||||
|
||||
/*
|
||||
* call-seq:
|
||||
* scrub! -> self
|
||||
* scrub!(replacement_string = default_replacement) -> self
|
||||
* scrub!{|bytes| ... } -> self
|
||||
* scrub!(replacement_string = default_replacement_string) -> self
|
||||
* scrub!{|sequence| ... } -> self
|
||||
*
|
||||
* Like String#scrub, except that any replacements are made in +self+.
|
||||
* Like String#scrub, except that:
|
||||
*
|
||||
* - Any replacements are made in +self+.
|
||||
* - Returns +self+.
|
||||
*
|
||||
* Related: see {Modifying}[rdoc-ref:String@Modifying].
|
||||
*
|
||||
*/
|
||||
static VALUE
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user