--- Michael Neumann <mneumann / ntecs.de> 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öótrusk och grmoln - köð en resa till solen pYahoo! Resor padressen http://se.docs.yahoo.com/travel/index.html