Permalink
Browse files

Fix OpenStruct#initialize_copy

  • Loading branch information...
1 parent 5c924fd commit a25019bb923ca1489ba090b1ab94f6bfcc529bde @dtykocki dtykocki committed May 25, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/19/ostruct.rb
View
@@ -109,6 +109,7 @@ def initialize(hash=nil)
def initialize_copy(orig)
super
@table = @table.dup
+ @table.each_key { |key| new_ostruct_member(key) }
end
#

0 comments on commit a25019b

Please sign in to comment.