DEV Community

Phil Nash
Phil Nash

Posted on

15 4

Happy Easter from Ruby 2.7.1

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
Enter fullscreen mode Exit fullscreen mode

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.

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

Top comments (1)

Collapse
 
madeindjs profile image
Alexandre Rousseau • Edited

Good to know. Thank for this tips

IRB easter egg

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay