More progress on rb2js
千里之行，始於足下 ―― 道德經
var s = RbString.box('Hello'); rbSendMessage(s, '<<', [' World']); rbSendMessage(RbRootObject.getConstant('Kernel'), 'puts', [s]);
s = 'Hello' s << ' World' Kernel.puts(s)
I haven’t implemented metaclasses yet, so instantiation isn’t yet possible except in the special case of boxed strings. Still, getting that ‘Hello World’ printed makes me feel that I’ve got over the first hill on the journey.