Best practices with STDIN in Ruby? [closed]
Following are some things I found in my collection of obscure Ruby. So, in Ruby, a simple no-bells implementation of the Unix command cat would be: #!/usr/bin/env ruby puts ARGF.read ARGF is your friend when it comes to input; it is a virtual file that gets all input from named files or all from STDIN. … Read more