Serialization With Ruby
2009-11-26 09:13:39 | 0 Comment
I have needed this for my application and in case someone needs serialization with Ruby, here is how to do it. All you need is the class named Marshal.
In order to serialize an object:
serializedData = Marshal.dump(object)
In order to unserialize an object:
Marshal.load(serializedData)
That's all.

Comments
Leave a Response