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

It's not perfect, but I've used sourcify [1] to get Proc#to_source. I would much rather see this built into ruby itself, since there are a bunch of tools I would build with it available, but this works fairly well in practice.

[1] https://github.com/ngty/sourcify



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

Search: