Project

General

Profile

Bug #8041

Updated by nobu (Nobuyoshi Nakada) about 7 years ago

=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

Back