Implemented to_ruby method for JRubyGenerator