@JRubyMethod(name = "minmax", frame = true, compat = CompatVersion.RUBY1_9)
public static IRubyObject minmax(ThreadContext context, IRubyObject self, final Block block) {
final Ruby runtime = context.getRuntime();
final IRubyObject result[] = new IRubyObject[] { null, null };
final ThreadContext localContext = context;
if (block.isGiven()) {
callEach(runtime, context, self, new BlockCallback() {
public IRubyObject call(ThreadContext ctx, IRubyObject[] largs, Block blk) {
checkContext(localContext, ctx, "minmax");