Actions
Feature #20261
openAdd symbol synonyms for '' and nil for IO method line separator arguments
Feature #20261:
Add symbol synonyms for '' and nil for IO method line separator arguments
Description
[Feature 20261] For IO's line-oriented read methods, there are two special values for the line-separator argument sep
; I'm proposing to add (user-friendlier) symbol synonyms for those values:
-
:paragraph
as synonym for''
(read paragraphs). -
:slurp
as synonym fornil
(read all).
Details (code, documentation, tests) may be seen at https://github.com/ruby/ruby/pull/9921.
Actions