/usr/lib/ruby/vendor_ruby/rspec/core/output_wrapper.rb is in ruby-rspec-core 3.7.0c1e0m0s1-1.
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 | module RSpec
module Core
# @private
class OutputWrapper
# @private
attr_accessor :output
# @private
def initialize(output)
@output = output
end
def respond_to?(name, priv=false)
output.respond_to?(name, priv)
end
def method_missing(name, *args, &block)
output.send(name, *args, &block)
end
# Redirect calls for IO interface methods
IO.instance_methods(false).each do |method|
define_method(method) do |*args, &block|
output.send(method, *args, &block)
end
end
end
end
end
|