/usr/lib/ruby/vendor_ruby/childprocess/abstract_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 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 | module ChildProcess
class AbstractIO
attr_reader :stderr, :stdout, :stdin
def inherit!
@stdout = STDOUT
@stderr = STDERR
end
def stderr=(io)
check_type io
@stderr = io
end
def stdout=(io)
check_type io
@stdout = io
end
#
# @api private
#
def _stdin=(io)
check_type io
@stdin = io
end
private
def check_type(io)
raise SubclassResponsibility, "check_type"
end
end
end
|