Re: [Rails] marshal vs yaml

2012-10-10 Thread Dave Aronson
On Tue, Oct 9, 2012 at 10:48 PM, John Merlino stoici...@aol.com wrote: I notice how Rails makes heavy use of YAML serialization, but a lot of the Ruby literature I come across places emphasis on Marshal. Different tools for different purposes. YAML makes it easy for a *human* looking at

[Rails] marshal vs yaml

2012-10-09 Thread John Merlino
I notice how Rails makes heavy use of YAML serialization, but a lot of the Ruby literature I come across places emphasis on Marshal. One powerful technique with marshal is the marshal_dump and marshal_load hooks used to customize storing and retrieving object states. For example, let's say I