0031 Data_end

A little more than a comment

You know # for comments, maybe =begin/=end, but there’s also __END__! Its use instantiates the DATA variable, which allows the contents to be read.

0031-data_end_1.png

DATA points to the source file with the correct offset to read just after __END__. This can be used, for example, to make a quine.

0031-data_end_2.png

Link to Ruby documentation for DATA.