Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
syspec
· 6y ago · 0 comments
I stumbled onto this when looking at the ruby source code, anyone know how to trigger it?
Comments
[–]
q3k
6y ago
On Ruby 2.7+, run irb, type 'RubyVM', press tab twice.
[–]
syspec
OP
6y ago
Thanks! Very cool - here's a gif for the curious:
https://media1.giphy.com/media/L0eN2GwpS7GOmv5Kk7/giphy.gif
[–]
jbverschoor
6y ago
You have to try a few times to get the logo or dancing logo
[–]
relyks
6y ago
Super cool, didn't know you could do that :)
[–]
relyks
6y ago
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.
[–]
rafadc
6y ago
Just copy the contents in a file and
gem install reline ruby yourfile.rb
It is a nice ascii demo of a ruby turning around