From: Ralph Shnelvar Date: 2010-02-13T07:29:35+09:00 Subject: Bug in Ruby YAML interpreter? I have a YAML file that looks something like this: en: countries: NI: "Nicaragua" NL: "Netherlands" NO: "Norway" NP: "Nepal" NR: "Nauru" NU: "Niue" When I run this through ------------------------------------ require 'yaml' countries = [] countries_str = IO.read("lib\\locale\\en.yml"); nil deserialized = YAML::load(countries_str); nil puts "deserialized['en']['countries'].to_a.size=" + deserialized['en']['countries'].to_a.size.to_s # puts deserialized['en']['countries'].to_a deserialized['en']['countries'].each do |country| # puts at_file_line_msg(__FILE__, __LINE__) # puts country.class p country[0] p country[1] countries << country[0] end country[0] comes up as false rather than as "NO". Is this my weak understanding or is this a bug?