From 3a85d0b12802e6ac6aeb2201c7ce0a3089be1e63 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 869ef864e..59d3122d4 100644 --- a/core/string.rbs +++ b/core/string.rbs @@ -3670,7 +3670,7 @@ class String # Related: see [Converting to New # String](rdoc-ref:String@Converting+to+New+String). # - def lstrip: () -> String + def lstrip: (*selector) -> String #