Icon Rufen Sie uns an
+49 441.309197-69 +49 441.309197-69

Update: snakeyaml deals with custom Java objects

Posted by Daniel Rauer on Friday, December 11, 2009

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!