From: Timothy Goddard Date: 2006-08-02T20:55:14+09:00 Subject: Re: Can you explain what this repo (yaml/Marshal) code do? anne001 wrote: > > It looks like in this code, this is simply how the save and load > > functions are implemented, and since 'self' is being passed, it will > > just serialize the Repository object to file during save and restore > > it during load. > > but why do you need to save and load the objects, > I have never seen code like this before. What do you gain? > what is the problem that it resolves It can be used to store objects on disk for future use (e.g. web application sessions) or to send objects between Ruby interpreters (only works with same interpreter version & object class loaded on both).