From 7c0843f29c726e9b5064f198cd758ef52194ff49 Mon Sep 17 00:00:00 2001 From: Ian Warshak Date: Thu, 28 Apr 2011 17:32:32 -0500 Subject: [PATCH] implement the yaml_initialize method --- lib/bson/ordered_hash.rb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/bson/ordered_hash.rb b/lib/bson/ordered_hash.rb index 7c791a0..a361e69 100644 --- a/lib/bson/ordered_hash.rb +++ b/lib/bson/ordered_hash.rb @@ -57,8 +57,13 @@ module BSON end def initialize(*a, &b) - super @ordered_keys = [] + super + end + + def yaml_initialize(tag, val) + @ordered_keys = [] + super end def keys