You can completely exclude the first five lines.
$ <: An object that provides access to concatenate the contents of all files specified on the command line of arguments or $ stdin (in the case when there are no arguments). $ & L; supports methods similar to the File object: binmode, close, closed ?, each, each_byte, each_line, eof, eof ?, file, filename, fileno, getc, gets, lineno, lineno =, path, pos, pos =, read, readchar , readline, readlines, rewind, search, skip, tell, to_a, to_i, to_io, to_s, as well as methods in Enumerated. The method file returns the file object for the file that is currently being read. This may change as $ <reads files on command line. [G / o]
Kernel.gets is short for $ <. Gets, therefore: