pry

pry whereami

More than 1 year has passed since last update.

: 'whereami' by itself shows 5 lines, 'whereami -m' shows the complete code for the current method you're in, 'whereami -c' shows the complete code for the class your'e in, and 'whereami -f' shows the code for the entire file. Also 'wherami N' where N is a number will show N lines +- your current line :)