class ChildProcess::Unix::IO
Private Instance Methods
check_type(io)
click to toggle source
# File lib/childprocess/unix/io.rb, line 6 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