--- 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?strusk och gr? moln - k?p en resa till solen p? Yahoo! Resor p? adressen http://se.docs.yahoo.com/travel/index.html