If you’re playing with IRB often like me, you should try awesome_print and interactive_editor. The first one gives you pp on steroids - a beautiful coloured printing in IRB.The second one gives you the power to invoke your favourite editor (vim, emacs, TextMate), write code and when you exit, your code is evaluated and ready to be used in IRB.