core/src/main/java/org/jruby/ext/date/RubyDate.java
@Override
    @JRubyMethod(name = "===", required = 1)
    public IRubyObject op_eqq(ThreadContext context, IRubyObject other) {
        if (other instanceof RubyDate) {
            return f_equal(context, jd(context), ((RubyDate) other).jd(context));
        }
        if (other instanceof RubyNumeric) {
            return f_equal(context, jd(context), other);
        }
        return fallback_eqq(context, other); // rb_num_coerce_cmp(self, other, "==")
    }
/**
     * The relationship operator for Date.
     *
     * Compares dates by Julian Day Number.  When comparing two DateTime instances, or a DateTime with a Date,
     * the instances will be regarded as equivalent if they fall on the same date in local time.
     * @param context
     * @param other
     * @return true/false/nil
     */
The relationship operator for Date.
Compares dates by Julian Day Number.  When comparing two DateTime instances, or a DateTime with a Date,
the instances will be regarded as equivalent if they fall on the same date in local time.
@param context
@param other
@return true/false/nil
The relationship operator for Date . Compares dates by Julian Day Number . When comparing two DateTime instances or a DateTime with a Date the instances will be regarded as equivalent if they fall on the same date in local time . @param context @param other @return true / false / nil
@Override
    @JRubyMethod(name = "===", required = 1)
    public IRubyObject op_eqq(ThreadContext context, IRubyObject other) {
        if (other instanceof RubyDate) {
            return f_equal(context, jd(context), ((RubyDate) other).jd(context));
        }
        if (other instanceof RubyNumeric) {
            return f_equal(context, jd(context), other);
        }
        return fallback_eqq(context, other); 
    }
@ Override @ JRubyMethod ( name = "===" , required = 1 ) public IRubyObject op_eqq ( ThreadContext context , IRubyObject other ) { if ( other instanceof RubyDate ) { return f_equal ( context , jd ( context ) , ( ( RubyDate ) other ) . jd ( context ) ) ; } if ( other instanceof RubyNumeric ) { return f_equal ( context , jd ( context ) , other ) ; } return fallback_eqq ( context , other ) ; }
The relationship operator for Date.
The relationship operator for Date .
// rb_num_coerce_cmp(self, other, "==")