Actions
Bug #17589
closedPathname#each_line with chomp option raises TypeError
Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 3.0.0p0 (2020-12-25 revision 95aff21468) [x86_64-darwin17]
Description
With Ruby 3.0,
require "pathname"
Pathname(__FILE__).each_line(chomp: true){ }
causes
no implicit conversion of Hash into Integer (TypeError)
In case of Ruby 2.7.2, it does not raise but diplay:
warning: Using the last argument as keyword parameters is deprecated
Actions
Like0
Like0Like0Like0Like0