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.

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.

Link to Ruby documentation for DATA.