Hello everyone,
I have problem in saving a class by Marshal.dump when the class contains Proc inside. So I want to find a way to turn the Proc into a string if that's possible. Otherwise I may need to remove all the proc objects and turn them into strings perhaps.
So my question is that:
We have a command called eval which can turn a string into program code and run, so in the opposite, will there be any command which can turn a block or proc object into a string of codes?
Thanks all.
I have problem in saving a class by Marshal.dump when the class contains Proc inside. So I want to find a way to turn the Proc into a string if that's possible. Otherwise I may need to remove all the proc objects and turn them into strings perhaps.
So my question is that:
We have a command called eval which can turn a string into program code and run, so in the opposite, will there be any command which can turn a block or proc object into a string of codes?
Thanks all.