Update: snakeyaml deals with custom Java objects

Posted by Daniel Rauer Thu, 10 Dec 2009 23:55:00 GMT

Andrey, the owner of snakeyaml, has written a reply to our latest blogpost :
In record time he patched snakeyaml to be compliant with our example of a Ruby-generated yaml file. By defining some conversion directives like

addTypeDescription(new TypeDescription(Sub1.class, "!ruby/object:Test::Module::Sub1"));
to the parser and
addClassTag(Sub1.class, "!ruby/object:Test::Module::Sub1");
to the dumping emitter snakeyaml seems to be able to do the Ruby->Java transfer, and vice versa.

Thanks alot to Andrey, a great job in very short time!