From c958f48296f8c8f7b49fac902271ca13f5379142 Mon Sep 17 00:00:00 2001 From: ParadoxV5 Date: Sat, 28 Dec 2024 14:09:02 -0700 Subject: [PATCH 1/4] `Kernel#gets` and `ARGF#gets` *also* accept `chomp: true` --- core/kernel.rbs | 2 +- core/rbs/unnamed/argf.rbs | 2 +- test/stdlib/ARGF_test.rb | 4 ++++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/core/kernel.rbs b/core/kernel.rbs index 262719c46..ec5220cd1 100644 --- a/core/kernel.rbs +++ b/core/kernel.rbs @@ -1163,7 +1163,7 @@ module Kernel : BasicObject # The style of programming using `$_` as an implicit parameter is gradually # losing favor in the Ruby community. # - def self?.gets: (?String arg0, ?Integer arg1) -> String? + def self?.gets: (?String sep, ?Integer limit, ?chomp: boolish) -> String? #