Adam Shelly wrote:

> [...] It was working fine until I tried to reload it
> from YAML. Here is some code that reproduces the problem.

Thanks - makes it much easier :-)

> - Why doesn't it work?

A bug which seems to be fixed in a later version.

> - How can I make it work?

Edit this file:
  C:\ruby\lib\ruby\1.8\yaml\rubytypes.rb

Find two occurrences (lines 80 & 239) of:

     o = obj_class.new

.... and replace both with:

     o = obj_class.allocate

> Thanks,
> -Adam

No probs,

daz