MAY 06
From ruby-talk, how to shut irb up:
In ~/.irbrc:
IRB.conf[:PROMPT][ IRB.conf[:PROMPT_MODE] ][:RETURN]=''
Now irb won’t display the return value of the entered statement! Wonderful!
However, this does break Wirble’s colorize, as Wirble can’t colorize what doesn’t get displayed. But I can make a function called pc (for “p color”) which uses Wirble’s colorizing algorithm:
require 'wirble' def pc(*ary) ary.each do |obj| puts Wirble::Colorize.colorize(obj.inspect) end end
Edit: Fixed pc to work with multiple arguments.