The last return in irb
You can use _
to return the last result.
$ irb
> [1,2,3,4,5]
=> [1, 2, 3, 4, 5]
> p = _
=> [1, 2, 3, 4, 5]
> p
=> [1, 2, 3, 4, 5]
fyeah
Written by Orodio
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Ruby
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#