While browsing the source code of the Ruby’s virtual machine I stumbled upon an easter egg.

If you recompile your Ruby with the SUPPORT_JOKE setting, you’ll be able to call two hardcoded methods called #bitblt and the_answer_to_life_the_universe_and_everything.

[1] pry(main)> bitblt
=> "a bit of bacon, lettuce and tomato"
[2] pry(main)> the_answer_to_life_the_universe_and_everything
=> 42

The return values are defined in insns.def.

Share on: