Ruby Console Underscore Shortcut _

Here’s a nifty ruby console trick I just learned. ┬áThe underscore character _ can be used to get the last returned value. ┬áHere’s an example in the Terminal:

Screen Shot 2013-12-27 at 8.42.16 PM

Credit to Charles Wood

Advertisements