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
If I remove the e.to_s line, the dump works fine. This is because MethodNameChecker is instantiated as part of Correctable.to_s, which sets the receiver.
One proposal is to remove the receiver while dumping. A better solution is to do whatever ruby does with the receiver while dumping NameError (the parent of NoMethodError)
The text was updated successfully, but these errors were encountered:
The following code fails on Marshal.dump because the receiver set in DidYouMean::MethodNameChecker is not dumpable (it's an IO object)
If I remove the
e.to_s
line, the dump works fine. This is because MethodNameChecker is instantiated as part of Correctable.to_s, which sets the receiver.One proposal is to remove the receiver while dumping. A better solution is to do whatever ruby does with the receiver while dumping NameError (the parent of NoMethodError)
The text was updated successfully, but these errors were encountered: