2 ms·
What really baked my noodle is that there is another "end" called __END__ used like this $ cat data.rb DATA.each_line { |ln|puts ln } __END__ fish
by emmelaich 7y ago
What really baked my noodle is that there is another "end" called __END__ used like this
$ cat data.rb
DATA.each_line { |ln|puts ln }
__END__
fish
cat
dog
$ ruby data.rb
fish
cat
dog