From: Florian Gross Date: 2004-04-22T02:49:07+09:00 Subject: Re: yaml doesn't save Proc members Dick Davies wrote: > I thought I'd bugger about with YAML to save and load the tree, > but although the arrays all get laid down nicely, the blocks don't. > > When I call to_yaml, the proc is saved as an empty block, > and when YAML.load() tries to pull it back, I get: > > NoMethodError: allocator undefined for Proc I've written some code which will allow to serialize Procs under specific conditions. It's limited and won't work with everything even if it were more complete than my current version. It might however be able to do what you want, in this case. Anyway, it's available at http://noegnud.sourceforge.net/flgr/proc_source.rb -- it might be worth a try. Regards, Florian Gross