From: _why Date: 2007-05-08T06:25:19+09:00 Subject: Re: using YAML as config On Tue, May 08, 2007 at 04:14:24AM +0900, Rover Rhubarb wrote: > I can simplify the taguri like this > yaml_as "tag::Channel" > > to get > > --- !Channel > ... > > and that's about as simple as I can get it without it failing to write > yaml. But loading it back in will fail to build the object - it will > give ma a YAML::DynamicType instead - which is what it always gives if > it doesn't recognize the object. Try: class Channel yaml_as "x-private:Channel" end And you get: --- !!Channel id: 3 name: foo G'luck!! _why