From: why the lucky stiff Date: 2004-07-09T03:26:32+09:00 Subject: Re: YAML questions/ideas Hal Fulton (hal9000@hypermetrics.com) wrote: > > 1. Are there plans to call #initialize_copy as we once > talked about? See my post of last week, referring to a > still older one. > Yes. Very soon. > 2. I sometimes wish for a little less line-orientation in > YAML. Is this contrary to the spirit of YAML? ... > > I'd like: > > - !ruby/object:SomeClass; foo: 23; bar: 37; bam: 237 > > or the equivalent. > Syck is pretty flexible about the "inline" collections. Just make sure that some degree of indentation is respected as you use these and they can be nested and all that. Valid: - !ruby/object:SomeClass {foo: 23, bar: 37, bam: 237, kablooey: [8, 8, 8], bazzuumka: 990} Invalid: - !ruby/object:SomeClass {foo:23, bar: 37, bam: 237, kablooey: 888, bazzuumka: 990} _why