On 3/20/06, Michael Hartl <mhartl / gmail.com> wrote:
> I've looked all over, but I can't figure out how to suppress the
> printing of evaluated expressions in irb.  Ordinarily, this is no
> problem:
>
> irb(main):001:0> a = []
> => []
>
> But what if the thing returned is huge?
>
> irb(main):001:0> b = function_returning_something_huge
> <disaster>

If you want to suppress printing for just one line, try appending ';0'
to the end of the command:

irb(main):001:0> b = function_returning_something_huge;0
=> 0