Skip to content

Commit

Permalink
IO#each_line and Kernel#readlines accept chomp: true
Browse files Browse the repository at this point in the history
  • Loading branch information
ParadoxV5 committed Dec 15, 2024
1 parent d913934 commit c026261
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions core/io.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -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]

# <!--
# rdoc-file=io.c
Expand Down
2 changes: 1 addition & 1 deletion core/kernel.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -1394,7 +1394,7 @@ module Kernel : BasicObject
# Optional keyword arguments `enc_opts` specify encoding options; see [Encoding
# options](rdoc-ref:encodings.rdoc@Encoding+Options).
#
def self?.readlines: (?String arg0, ?Integer arg1) -> ::Array[String]
def self?.readlines: (?String arg0, ?Integer arg1, ?chomp: boolish) -> ::Array[String]

# <!--
# rdoc-file=lib/rubygems/core_ext/kernel_require.rb
Expand Down

0 comments on commit c026261

Please sign in to comment.