예제 #1
0
 private IRubyObject inspectPuts(ThreadContext context, RubyArray array) {
   try {
     getRuntime().registerInspecting(array);
     return puts(context, array.toJavaArray());
   } finally {
     getRuntime().unregisterInspecting(array);
   }
 }
예제 #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);
   }
 }