News for hackers. Stuff that matters.
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?
Re:Ruby lib/irb/easter-egg.rb by q3k on Sunday July 12, 2020 @04:24AM (#23809816)
On Ruby 2.7+, run irb, type 'RubyVM', press tab twice.
Re:Ruby lib/irb/easter-egg.rb by syspec on Sunday July 12, 2020 @06:03AM (#23810245)
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
Re:Ruby lib/irb/easter-egg.rb by relyks on Sunday July 12, 2020 @04:33AM (#23809865)
Super cool, didn't know you could do that :)
Re:Ruby lib/irb/easter-egg.rb by relyks on Sunday July 12, 2020 @04:27AM (#23809831)
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.
Re:Ruby lib/irb/easter-egg.rb by rafadc on Sunday July 12, 2020 @04:23AM (#23809811)
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