This post originated from an RSS feed registered with Ruby Buzz
by Jan Lelis.
Original Post: IRB rockets and colors
Feed Title: rbJ*_*L.net
Feed URL: http://feeds.feedburner.com/rbJL
Feed Description: Hi, I am a fan of Ruby and like to explore it and the world around ;).
So I started this blog, where I am publishing code snippets, tutorials for beginners as well as general thoughts about Ruby, the web or programming in general.
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 or by updating irbtools