mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
parent
5a8e87cb2e
commit
a116871258
1 changed files with 1 additions and 0 deletions
|
@ -2473,6 +2473,7 @@ module FileUtils
|
|||
def fu_each_src_dest0(src, dest, target_directory = true) #:nodoc:
|
||||
if tmp = Array.try_convert(src)
|
||||
unless target_directory or tmp.size <= 1
|
||||
tmp = tmp.map {|f| File.path(f)} # A workaround for RBS
|
||||
raise ArgumentError, "extra target #{tmp}"
|
||||
end
|
||||
tmp.each do |s|
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue