On Tue, 2005-08-16 at 13:43 -0600, why the lucky stiff wrote: > You can override the String class, preferrably in singleton classes. > > $ irb -r yaml > >> ary = ['normal', '"quoted"', 'force literal'] > >> class << ary[2] > >> def to_yaml_fold; '|'; end > >> end > >> y ary > --- > - normal > - "\"quoted\"" > - | > force literal
So, can we do that (or equivalent) for content by default? I think it would address many people's biggest Hobix pet peeve. |-folding is so much nicer than >-folding... -mental
signature.asc
Description: This is a digitally signed message part
_______________________________________________ Hobix-is-the-way mailing list [email protected] http://rubyforge.org/mailman/listinfo/hobix-is-the-way
