Closed orien closed 7 years ago
From the description of #hash in the Ruby docs:
#hash
This function must have the property that a.eql?(b) implies a.hash == b.hash.
a.eql?(b)
a.hash == b.hash
Now Event#hash satisfies this constraint as it has been brought in line with our custom Event#eql? implementation.
Event#hash
Event#eql?
This should avoid any weirdness when using Event instances as hash keys.
From the description of
#hash
in the Ruby docs:Now
Event#hash
satisfies this constraint as it has been brought in line with our customEvent#eql?
implementation.This should avoid any weirdness when using Event instances as hash keys.