fix a bug

This commit is contained in:
kp2pml30 2024-10-04 10:59:57 +04:00
parent 9a4e738f97
commit b44e5373ed

View file

@ -306,12 +306,13 @@ class Configurator
} }
elsif l.kind_of? OpenStruct elsif l.kind_of? OpenStruct
OpenStruct.new(l.instance_eval { OpenStruct.new(l.instance_eval {
@table.merge(r) { |k, ov, nv| @table
}.merge(r) { |k, ov, nv|
extend_config_impl ov, nv extend_config_impl ov, nv
}.transform_values { |v| }.transform_values { |v|
if v.kind_of? Hash then v.to_ostruct else v end if v.kind_of? Hash then v.to_ostruct else v end
} }
}) )
elsif r.kind_of?(Proc) elsif r.kind_of?(Proc)
r.call(l) r.call(l)
elsif r.kind_of?(Hash) elsif r.kind_of?(Hash)