From: "Jörg W Mittag" Date: 2010-02-13T08:05:09+09:00 Subject: Re: Bug in Ruby YAML interpreter? Ralph Shnelvar wrote: > I have a YAML file that looks something like this: > > en: > countries: > [...] > NO: "Norway" > [...] > country[0] comes up as false rather than as "NO". > > Is this my weak understanding or is this a bug? This is how Booleans are represented in YAML. An unescaped string which is either "NO", "YES", "TRUE", "FALSE", "ON", "OFF", "Y" or "N" (case-insensitive) is a Boolean value and not a string. You need to escape the string: "NO": "Norway" BTW: If you hadn't put all those '; nil' there, you would have seen the 'false => "Norway"' key in the hash printed out in IRB. jwm