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