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?

0

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.