M
Michael Hartl
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>
In Python, the interpreter suppresses the printing of the expression if
there is assignment, but not otherwise:
How do I get the same or similar behavior in irb?
Thanks in advance,
Michael
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>
In Python, the interpreter suppresses the printing of the expression if
there is assignment, but not otherwise:
<disaster, but I asked for it!>a = []
a []
b = function_returning_something_huge()
b
How do I get the same or similar behavior in irb?
Thanks in advance,
Michael