1 include Marshal
2 a = 25.6;
3 pt = Struct.new('Point', :x,:y);
4 x = pt.new(10, 10)
5 y = pt.new(20, 20)
6 rt = Struct.new('Rectangle', :origin,:corner);
7 z = rt.new(x, y)
8 c = Object.new
9 s = [a, x, z, c, c, "fff"];
10 p s
11 d = dump(s);
12 p d
13 p load(d)