diff options
| author | Burdette Lamar <BurdetteLamar@Yahoo.com> | 2025-10-23 17:13:37 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-10-23 18:13:37 -0400 |
| commit | ab94bce885314d0065514a88cd356a89642292b0 (patch) | |
| tree | ed57e3e7e703392035407ecfc77bed1044788b24 /string.c | |
| parent | 0227ad07a41eea95349a9f26946dbf00291da17f (diff) | |
[DOC] Tweaks for String#squeeze!
Diffstat (limited to 'string.c')
| -rw-r--r-- | string.c | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -8903,8 +8903,12 @@ rb_str_delete(int argc, VALUE *argv, VALUE str) * call-seq: * squeeze!(*selectors) -> self or nil * - * Like String#squeeze, but modifies +self+ in place. - * Returns +self+ if any changes were made, +nil+ otherwise. + * Like String#squeeze, except that: + * + * - Characters are squeezed in +self+ (not in a copy of +self+). + * - Returns +self+ if any changes are made, +nil+ otherwise. + * + * Related: See {Modifying}[rdoc-ref:String@Modifying]. */ static VALUE |
