Project

General

Profile

Bug #11088 » 11088_test.rb

shishir127 (Shishir Joshi), 05/09/2015 06:57 AM

 
class MarshalTest

attr_accessor :str, :int

end

test_object = MarshalTest.new()
test_object.str = 'test'
test_object.int = 42

dump = Marshal.dump(test_object)
reconstituted_object = Marshal.load(dump)
puts reconstituted_object.str
puts reconstituted_object.int
reconstituted_object.undefined_method
(3-3/7)