HEX
Server: Apache
System: Linux pdx1-shared-a1-38 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: mmickelson (3396398)
PHP: 8.1.31
Disabled: NONE
Upload Files
File: //usr/lib/ruby/vendor_ruby/childprocess/unix/io.rb
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