From: Aaron Patterson Date: 2010-04-16T01:49:20+09:00 Subject: [ruby-core:29535] [Bug #3148](Closed) to_yaml on Hash with complex keys does not dump properly Issue #3148 has been updated by Aaron Patterson. Status changed from Open to Closed Assigned to set to Aaron Patterson This is fixed with Psych in 1.9.2: require 'yaml' YAML::ENGINE.yamler = 'psych' class ::BaseballTeam attr_accessor :name def initialize(name); self.name = name; end end h = { BaseballTeam.new("New York Mets") => "national" } p YAML::load( h.to_yaml ) ---------------------------------------- http://redmine.ruby-lang.org/issues/show/3148 ---------------------------------------- http://redmine.ruby-lang.org