We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8bec6b3 commit 0a81ab5Copy full SHA for 0a81ab5
src/main/ruby/truffleruby/core/argf.rb
@@ -283,9 +283,9 @@ def getc
283
# The mechanism does track the line numbers,
284
# and updates $. accordingly.
285
#
286
- def gets(sep = $/)
+ def gets(...)
287
while advance!
288
- line = @stream.gets(sep)
+ line = @stream.gets(...)
289
290
unless line
291
return nil if @use_stdin_only
src/main/ruby/truffleruby/core/kernel.rb
@@ -337,8 +337,8 @@ def getc
337
end
338
module_function :getc
339
340
- def gets(*args)
341
- line = ARGF.gets(*args)
+ line = ARGF.gets(...)
342
Primitive.io_last_line_set(Primitive.caller_special_variables, line) if line
343
line
344
0 commit comments