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](http://ruby-doc.org/core/classes/Marshal.html)*.
In order to serialize an object:
serializedData = Marshal.dump(object)
In order to unserialize an object:
Marshal.load(serializedData)
That's all.
Check my latest project compector.com where you can post references about your former employers and see what others have said about the future employers. Sign up now and post a reference and share it on twitter or facebook.


Comments
Leave a Response