Ejemplo n.º 1
0
 private IRubyObject inspectPuts(ThreadContext context, RubyArray array) {
   try {
     getRuntime().registerInspecting(array);
     return puts(context, array.toJavaArray());
   } finally {
     getRuntime().unregisterInspecting(array);
   }
 }
Ejemplo n.º 2
0
 private static IRubyObject inspectPuts(
     ThreadContext context, IRubyObject maybeIO, RubyArray array) {
   Ruby runtime = context.runtime;
   try {
     runtime.registerInspecting(array);
     return puts(context, maybeIO, array.toJavaArray());
   } finally {
     runtime.unregisterInspecting(array);
   }
 }