Working with Ruby
Hi, I am Jan. This is my old Ruby blog. I still post about Ruby, but I now do it on idiosyncratic-ruby.com. You should also install Irbtools to improve your IRB.

IRB rockets and colors

Introducing the fancy_irb gem:

  • Use fancy colors! You can colorize the prompts, irb errors, stderr and stdout
  • Output results as Ruby comments
  • Enhance your output value using procs

I really like the irb_rocket gem, which outputs the IRB evaluation results as comments and colorizes errors. Unfortunately, the implementation leads to bugs, because it tries to run the whole command before printing anything to stdout. For this reason, I’ve rewritten (and extended) it so it’s now compatible with other great gems like hirb, interactive_editor and so on.

You can try it with gem install fancy_irb and FancyIrb.start or by updating irbtools.

github page

More IRB action later this month :)

Creative Commons License