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