Posted by asotobu on Oct 08, 2013; 6:59pm URL: https://discuss.asciidoctor.org/Breaking-changes-with-0-1-4-tp757p763.html
Hello, we can talk tomorrow about exactly the problem of serialization, but before that let me show you the code that deals with HashMap to RubyHash:
This method is called when you want to render something (in this case an string). The Map (the one you had send as argument) is received as argument and is converted to RubyHash by using RubyHashUtil.
public String render(String content, Map<String, Object> options) {
Note that a new instance of hash is created, and then for each element, the key is converted to a Ruby symbol, and the value to a Ruby object calling toRubyObject.
public static RubyHash convertMapToRubyHashWithSymbols(Ruby rubyRuntime,
Map<String, Object> options) {