What not to forget when implementing a pattern-matching in Ruby for custom objects

What not to forget when implementing a pattern-matching in Ruby for custom objects.
Trivial yet easy to mess up a set of things to consider, demonstrated on the latest core classes Time/Date.

Read in full here:

This thread was posted by one of our members via one of our news source trackers.

Corresponding tweet for this thread:

Share link for this tweet.