From ffae4282bffa6da52882c8a76a5c5a30665e197d Mon Sep 17 00:00:00 2001 From: ksss Date: Thu, 25 Dec 2025 10:47:06 +0900 Subject: [PATCH] Support selector for `String#strip` family. --- core/string.rbs | 12 +++++------ test/stdlib/String_test.rb | 42 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 48 insertions(+), 6 deletions(-) diff --git a/core/string.rbs b/core/string.rbs index f9e49719d..9fcff7d09 100644 --- a/core/string.rbs +++ b/core/string.rbs @@ -3665,7 +3665,7 @@ class String # Related: see [Converting to New # String](rdoc-ref:String@Converting+to+New+String). # - def lstrip: () -> String + def lstrip: (*selector) -> String #