Re:Ruby lib/irb/easter-egg.rb
by syspec on Sunday July 12, 2020 @02:57AM
(#23809444)
I stumbled onto this when looking at the ruby source code, anyone know how to trigger it?
[ Parent
| on HN ]
On Ruby 2.7+, run irb, type 'RubyVM', press tab twice.
Thanks! Very cool - here's a gif for the curious:
https://media1.giphy.com/media/L0eN2GwpS7GOmv5Kk7/giphy.gif
Re:Ruby lib/irb/easter-egg.rb
by jbverschoor on Sunday July 12, 2020 @05:12AM
(#23810038)
You have to try a few times to get the logo or dancing logo
Super cool, didn't know you could do that :)
Run irb and input 'IRB.send(:easter_egg)'. Also, if you have the downloaded source, you can just run the source file directly because of the last line of code.