Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

An easy way to do that is to use the Pry gem. If you're in a pry console, you can use `show-method Thing.foo` and it will show you the method, which file and line it's defined in, etc. Pry is a great tool and this feature makes is a blessing.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: