core/src/main/java/org/jruby/RubyEnumerable.java
@JRubyMethod
    public static IRubyObject find(ThreadContext context, IRubyObject self, final Block block) {
        boolean blockGiven = block.isGiven();

        if (self instanceof RubyArray && blockGiven) return ((RubyArray) self).find(context, null, block);

        return blockGiven ? detectCommon(context, eachSite(context), self, null, block) : enumeratorize(context.runtime, self, "find");
    }
// FIXME: Custom Array enumeratorize should be made for all of these methods which skip Array without a supplied block.
Custom Array enumeratorize should be made for all of these methods which skip Array without a supplied block.
Custom Array enumeratorize should be made for all of these methods which skip Array without a supplied block .
@JRubyMethod
    public static IRubyObject find(ThreadContext context, IRubyObject self, final Block block) {
        boolean blockGiven = block.isGiven();
        if (self instanceof RubyArray && blockGiven) return ((RubyArray) self).find(context, null, block);
        return blockGiven ? detectCommon(context, eachSite(context), self, null, block) : enumeratorize(context.runtime, self, "find");
    }
@ JRubyMethod public static IRubyObject find ( ThreadContext context , IRubyObject self , final Block block ) { boolean blockGiven = block . isGiven ( ) ; if ( self instanceof RubyArray && blockGiven ) return ( ( RubyArray ) self ) . find ( context , null , block ) ; return blockGiven ? detectCommon ( context , eachSite ( context ) , self , null , block ) : enumeratorize ( context . runtime , self , "find" ) ; }
FIXME: Custom Array enumeratorize should be made for all of these methods which skip Array without a supplied block.
FIXME : Custom Array enumeratorize should be made for all of these methods which skip Array without a supplied block .