/usr/lib/ruby/vendor_ruby/childprocess/unix/io.rb is in ruby-childprocess 0.5.9-1ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | module ChildProcess
module Unix
class IO < AbstractIO
private
def check_type(io)
unless io.respond_to? :to_io
raise ArgumentError, "expected #{io.inspect} to respond to :to_io"
end
result = io.to_io
unless result && result.kind_of?(::IO)
raise TypeError, "expected IO, got #{result.inspect}:#{result.class}"
end
end
end # IO
end # Unix
end # ChildProcess
|