mirror of
https://github.com/kp2pml30/ya-build.git
synced 2026-02-17 00:14:42 +04:00
fix a bug
This commit is contained in:
parent
9a4e738f97
commit
b44e5373ed
1 changed files with 3 additions and 2 deletions
5
ya-build
5
ya-build
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue