Quick reference for efficient coding
View the Project on GitHub YumaYX/RubyQuickReference
The line of Ruby code $stdin.read reads input from the standard input (keyboard) until the end of the file (EOF) is reached, and stores the input as a string.
$stdin.read
# $stdin.read #=> nil
Executed with Ruby 3.3.5
3.3.5