3 ms·
About your question, the reason is that `===` is aliased to `Range#include?` which checks if the argument is a discrete element contained in the range. That ra
by anamexis 8y ago
About your question, the reason is that `===` is aliased to `Range#include?` which checks if the argument is a discrete element contained in the range.
That range of `Date`s does not include any `DateTime`s, so the inclusion check returns false.
`Range#cover?` on the other hand, just uses >= and <= to check .