Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix OpenStruct#initialize_copy

  • Loading branch information...
commit a25019bb923ca1489ba090b1ab94f6bfcc529bde 1 parent 5c924fd
@dtykocki dtykocki authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  lib/19/ostruct.rb
View
1  lib/19/ostruct.rb
@@ -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
#
Please sign in to comment.
Something went wrong with that request. Please try again.