mirror of https://github.com/KLayout/klayout.git
[consider merging] Bugfix: connect_explicit did not accept an array of nets as single argument
This commit is contained in:
parent
45950f20d6
commit
2d91f7f90c
|
|
@ -379,7 +379,8 @@ module DRC
|
|||
arg1.is_a?(String) || raise("The first argument has to be a string")
|
||||
@pre_extract_config << lambda { |l2n| l2n.join_nets(arg1, arg2) }
|
||||
else
|
||||
arg1.is_a?(String) || raise("The argument has to be a string")
|
||||
arg1.is_a?(Array) || raise("The argument has to be an array of strings")
|
||||
arg1.find { |a| !a.is_a?(String) } && raise("The argument has to be an array of strings")
|
||||
@pre_extract_config << lambda { |l2n| l2n.join_nets(arg1) }
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue