From: Anders Bengtsson Date: 2004-06-08T00:06:22+09:00 Subject: Re: Custom marshalling with YAML --- Michael Neumann wrote: > > class Foo > > def _dump(x) > > "foo" > > end > > > > def to_yaml > > _dump > > end > > end > > Take a look at lib/yaml/rubytypes.rb. > > There's a to_yaml_type and a YAML.add_ruby_type method. > Maybe this is a start. Thanks Michael, the code in rubytypes.rb does indeed look something like what I'm looking for. /Anders ===== __________________________________________________ Anders Bengtsson ndrsbngtssn@yahoo.se Stockholm, Sweden H�strusk och gr� moln - k�p en resa till solen p� Yahoo! Resor p� adressen http://se.docs.yahoo.com/travel/index.html