Actions
Bug #8041
closedMarshal incompatibility with prepend
Bug #8041:
Marshal incompatibility with prepend
Description
=begin
Marshal doesn't work for objects with prepended modules:
o = Object.new
o.singleton_class.send :include, Enumerable
Marshal.load(Marshal.dump(o)) # => ok
o = Object.new
o.singleton_class.send :prepend, Enumerable
Marshal.load(Marshal.dump(o)) # => ArgumentError: Object does not refer to module
=end
Actions