Arrays in Ruby Discussion
That underscore tip is really handy!
Yes! I love that one! :)
I forget about it all the time. Nice to get the reminder! : )
agreed, but what scenario would we use this in?
Any scenario where you want to forgot to save the last thing returned in your console or IRB session to a variable. You can also call methods on _ and they will be sent to whatever the last returned object/result was from your console session.
Indeed, I very much agree with you
Is there any performance issue when we chain methods? or doesn't it take any impact similar to get return value of one method and again use it to another method and so on?