1

I can print a function's contents as a string in JS:

(function (x) { alert(x + 'y'); }).toString()
> "function (x) { alert(x + 'y'); }"

Is there something similar with Ruby?

elado
  • 8,510
  • 9
  • 51
  • 60

0 Answers0