lib/benchmark_driver/struct.rb in benchmark_driver-0.10.3 vs lib/benchmark_driver/struct.rb in benchmark_driver-0.10.4
- old
+ new
@@ -54,10 +54,10 @@
klass.prepend(Module.new {
def initialize(**)
super
self.class.defaults.each do |key, value|
if public_send(key).nil?
- public_send("#{key}=", value)
+ public_send("#{key}=", value.dup)
end
end
end
})