From: Larry Edelstein Date: 2007-02-12T10:21:54+09:00 Subject: using YAML as config Hi all - I want to write a config file in YAML. In this file I will store a small graph of objects in an array: - !mydomain,mydate/Company name: TuesdayCo subthings: - !mydomain,mydate/Person name: Ruby Tuesday - !mydomain,mydate/Person name: Tuesday Weld - !mydomain,myDate name: FridayCo subthings: etc. Then I want to read in this file and get an array of Company objects, each of which has an array of Person objects. I'm defining these classes myself. I've tried using add_domain_type and hoped to get instances of my classes, but instead I got instances of YAML::DomainType. How should I do this? -larry -- Posted via http://www.ruby-forum.com/.