From c026261313cdf4f8494051f25082c6f9331c579b Mon Sep 17 00:00:00 2001 From: ParadoxV5 Date: Sat, 14 Dec 2024 20:35:06 -0700 Subject: [PATCH] `IO#each_line` and `Kernel#readlines` accept `chomp: true` --- core/io.rbs | 4 ++-- core/kernel.rbs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/core/io.rbs b/core/io.rbs index 9ee8110d53..afa04fb6c0 100644 --- a/core/io.rbs +++ b/core/io.rbs @@ -3148,8 +3148,8 @@ class IO < Object # # Returns an Enumerator if no block is given. # - def each_line: (?String sep, ?Integer limit) { (String line) -> void } -> self - | (?String sep, ?Integer limit) -> ::Enumerator[String, self] + def each_line: (?String sep, ?Integer limit, ?chomp: boolish) { (String line) -> void } -> self + | (?String sep, ?Integer limit, ?chomp: boolish) -> ::Enumerator[String, self] #