DEV Community

Discussion on: Advent of Ruby 3.0 - Day 01 - Report Repair

Collapse
 
baweaver profile image
Brandon Weaver

Y'know I always forget about ARGF because of how rarely I write CLI type scripts. Admittedly I put then in there just to demonstrate that it works.

Collapse
 
peterc profile image
Peter Cooper

You can even go a step further with $<.read or $<.readlines - I've been doing this in my "golfed" solutions.