[#113435] [Ruby master Feature#19634] Pattern matching dynamic key — "baweaver (Brandon Weaver) via ruby-core" <ruby-core@...>
Issue #19634 has been reported by baweaver (Brandon Weaver).
6 messages
2023/05/09
[#113489] [Ruby master Bug#19642] Remove vectored read/write from `io.c`. — "ioquatix (Samuel Williams) via ruby-core" <ruby-core@...>
Issue #19642 has been reported by ioquatix (Samuel Williams).
10 messages
2023/05/15
[ruby-core:113396] [Ruby master Feature#19628] Add ARGF.each_file for iterating file/io objects
From:
"davishmcclurg (David Harsha) via ruby-core" <ruby-core@...>
Date:
2023-05-03 02:17:36 UTC
List:
ruby-core #113396
Issue #19628 has been reported by davishmcclurg (David Harsha). ---------------------------------------- Feature #19628: Add ARGF.each_file for iterating file/io objects https://bugs.ruby-lang.org/issues/19628 * Author: davishmcclurg (David Harsha) * Status: Open * Priority: Normal ---------------------------------------- `ARGF` provides helpers for processing file/stdin command line arguments in various ways (bytes, chars, codepoints, etc), but it doesn't currently have a simple way to iterate through the arguments as `File`/`IO` objects. This can be useful when you want to perform an operation on the contents of an entire file (eg, JSON parsing) instead of combining them into a single string or going line-by-line. My proposal is to add an `ARGF.each_file` method that yields each file (or returns an enumerator if no block is provided). Possible implementation: https://github.com/davishmcclurg/ruby/commit/cc8054c2737243f839d72622977a44fe84a95335 -- https://bugs.ruby-lang.org/ ______________________________________________ ruby-core mailing list -- ruby-core@ml.ruby-lang.org To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org ruby-core info -- https://ml.ruby-lang.org/mailman3/postorius/lists/ruby-core.ml.ruby-lang.org/