===(other)
public
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.
Show source
def === (other)
case other
when Numeric; return jd == other
when Date; return jd == other.jd
else
l, r = other.coerce(self)
return l === r
end
false
end