Ruby 2.7.1 was released recently and while it included a couple of security fixes it also brought with it a little bonus.
Discovered on Reddit, there is an Easter egg that has been hidden in Ruby 2.7.1. You can trigger it a couple of ways. If you don't want to know how, stop reading here!
First, open IRB for Ruby version 2.7.1
$ ruby -v 
ruby 2.7.1
$ irb
Then either enter RubyVM and press TAB twice or sneakily send the private method easter_egg to IRB: IRB.send(:easter_egg).
It may not actually be to do with Easter at all, but I couldn't help point it out since it was released so close.
I hope you enjoyed your Easter and had fun with this bit of developer whimsy new to the Ruby codebase.
 

 
    
Top comments (1)
Good to know. Thank for this tips