<p dir="ltr"><br>
On 15 Jul 2015 15:29, "Michael Pavling" <<a href="mailto:pavling@gmail.com">pavling@gmail.com</a>> wrote:<br>
><br>
> Instead of including `Comparable`, set your `NoExpectedDate` class to inherit from `Date` (keep the overloads of `.to_s` and `.<=>`)</p>
<p dir="ltr">Though you need to change your `.<=>` method to return -1 for sensible results in the console, but this approach makes both evaluations treat your NoExpectedDates as older than any other date, which may be the opposite of what you want.<br>
</p>