I don't know enough about IRB's internal, but can you redefine the inspect method on those objects to print only a summary? That's what I did to my objects that have huge object graph attached.
Another possibility is to always suffix your command with ";nil", such as "big.call; nil", to hide the return value. Peter -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ricardo Trindade Sent: Monday, September 24, 2007 7:15 AM To: [email protected] Subject: [Jruby-extras-devel] irb and to_s Hi, Is there a way to persuade irb to use to_s to print objects in the console instead of inspect ? We're working with some objects that have thousands of other objects inside them, so evaluating them on jirb takes minutes, because of the time it takes to print. thanks, Ricardo _______________________________________________ Jruby-extras-devel mailing list [email protected] http://rubyforge.org/mailman/listinfo/jruby-extras-devel _______________________________________________ Jruby-extras-devel mailing list [email protected] http://rubyforge.org/mailman/listinfo/jruby-extras-devel
