Full Ruby impl for JRuby runtime