Ruby Tuesday Volume 1
Quick Ruby tip. Shame on me for not knowing this but in irb
>>>_
That’s the underscore character, is always equal to the last expression that was evaluated. Thanks @sd.
Quick Ruby tip. Shame on me for not knowing this but in irb
>>>_
That’s the underscore character, is always equal to the last expression that was evaluated. Thanks @sd.
Same goes for the python interpreter, _ is the last expression evaluated
Posted by Justin on 12 March 2009 @ 1am
© expletive inserted. Powered by WordPress using the DePo Skinny Theme.
1 Comment