We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is the user supposed to define their own #marshal_dump so it can work with Marshal?
#marshal_dump
Marshal
NullObject = Naught.build { |c| c.black_hole } # fails because marshal_dump returns itself and triggers recursive loop failsafe Marshal.load(Marshal.dump(NullObject.new)) NullObjectWithDump = Naught.build do |c| c.black_hole def marshal_dump end end # works Marshal.load(Marshal.dump(NullObjectWithDump.new))
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Is the user supposed to define their own
#marshal_dump
so it can work withMarshal
?The text was updated successfully, but these errors were encountered: