You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have an object which defines a #coerce instance method as part of its public API. I didn't realize until recently that this breaks #== for this object and all of the objects that own it until today.
I understand after talking to @dkubb that this is a weak convention in ruby, but it might make sense to deprecate the use of #coerce and instead depend on a method that is less likely to naturally collide with unrelated method names that are not meant for equalizer
The text was updated successfully, but these errors were encountered:
I have an object which defines a
#coerce
instance method as part of its public API. I didn't realize until recently that this breaks#==
for this object and all of the objects that own it until today.I understand after talking to @dkubb that this is a weak convention in ruby, but it might make sense to deprecate the use of
#coerce
and instead depend on a method that is less likely to naturally collide with unrelated method names that are not meant for equalizerThe text was updated successfully, but these errors were encountered: