1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
This commit is contained in:
Benoit Daloze 2020-11-13 13:17:22 +01:00
parent 69c5474e10
commit acbe7aa197

View file

@ -85,7 +85,3 @@ def new_io(name, mode = "w:utf-8")
File.new(name, mode)
end
end
def find_unused_fd
Dir.entries("/dev/fd").map(&:to_i).max + 1
end