From: elbows@... (Nathan Weston) Date: 2003-11-21T08:02:16+09:00 Subject: Marshalling delegates I can't seem to marshal a delegate. The code below: class Foo < SimpleDelegate end Marshal.dump(Foo.new(nil)) Gives me an error: TypeError: singleton can't be dumped The weird thing is that defining _dump or marshal_dump in Foo doesn't make this problem go away. Even stranger is that this error suddenly started showing up in code that used to work... I'm not sure what may haev changed in the interim (haven't touched the code in a few weeks), except I may have apt-get updated my ruby installation. Is there any way I can dump a delegate? Nathan