From: Siratinee Sukachai Newsgroups: comp.lang.ruby Subject: dump in yaml & unexpected result Date: Fri, 22 Apr 2011 00:23:19 -0500 Organization: Service de news de lacave.net Lines: 42 Message-ID: NNTP-Posting-Host: bristol.highgroove.com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: talisker.lacave.net 1303449820 45125 65.111.164.187 (22 Apr 2011 05:23:40 GMT) X-Complaints-To: abuse@lacave.net NNTP-Posting-Date: Fri, 22 Apr 2011 05:23:40 +0000 (UTC) X-Received-From: This message has been automatically forwarded from the ruby-talk mailing list by a gateway at comp.lang.ruby. If it is SPAM, it did not originate at comp.lang.ruby. Please report the original sender, and not us. Thanks! For more details about this gateway, please visit: http://blog.grayproductions.net/categories/the_gateway X-Mail-Count: 382048 X-Ml-Name: ruby-talk X-Rubymirror: Yes X-Ruby-Talk: Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.stben.net!talisker.lacave.net!lacave.net!not-for-mail Xref: x330-a1.tempe.blueboxinc.net comp.lang.ruby:3361 I have a Hash which value is Array of Hashes. And I expected to generate the yaml like this: --- Session: singular: Session email: Email password: Password rememberMe: Remember Me! But when I use dump method to generate yaml file and the result is: --- - Session: - singular: | Session - email: | Email - password: | Password - rememberMe: | Remember Me! When I print out my hash on command line, it look like this: SessionsingularSession emailEmail passwordPassword rememberMeRemember Me! What do you think? Am I wrong with any steps? If I need to generate yaml look like above, how can I do? -- Posted via http://www.ruby-forum.com/.