标签: ruby
我可以在JS中打印函数的内容作为字符串:
(function (x) { alert(x + 'y'); }).toString() > "function (x) { alert(x + 'y'); }"
与Ruby有类似的东西吗?