Sha256: 0bb009765c8ac89ab9d0824787385b4ec4274af9a6b280999b75bf0981f4a6bd

Contents?: true

Size: 471 Bytes

Versions: 56

Compression:

Stored size: 471 Bytes

Contents

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


Version data entries

56 entries across 42 versions & 5 rubygems

Version Path
vagrant-unbundled-2.2.7.0 vendor/bundle/ruby/2.4.0/gems/childprocess-0.6.3/lib/childprocess/unix/io.rb
vagrant-unbundled-2.2.7.0 vendor/bundle/ruby/2.7.0/gems/childprocess-0.6.3/lib/childprocess/unix/io.rb
vagrant-unbundled-2.2.7.0 vendor/bundle/ruby/2.6.0/gems/childprocess-0.6.3/lib/childprocess/unix/io.rb
vagrant-unbundled-2.2.6.2 vendor/bundle/ruby/2.6.0/gems/childprocess-0.6.3/lib/childprocess/unix/io.rb
vagrant-unbundled-2.2.6.1 vendor/bundle/ruby/2.6.0/gems/childprocess-0.6.3/lib/childprocess/unix/io.rb
vagrant-unbundled-2.2.6.0 vendor/bundle/ruby/2.6.0/gems/childprocess-0.6.3/lib/childprocess/unix/io.rb
vagrant-unbundled-2.2.5.0 vendor/bundle/ruby/2.6.0/gems/childprocess-0.6.3/lib/childprocess/unix/io.rb
vagrant-unbundled-2.2.5.0 vendor/bundle/ruby/2.5.0/gems/childprocess-0.6.3/lib/childprocess/unix/io.rb
tdiary-5.0.13 vendor/bundle/gems/childprocess-0.9.0/lib/childprocess/unix/io.rb
tdiary-5.0.12.1 vendor/bundle/gems/childprocess-0.9.0/lib/childprocess/unix/io.rb
vagrant-unbundled-2.2.4.0 vendor/bundle/ruby/2.5.0/gems/childprocess-0.6.3/lib/childprocess/unix/io.rb
vagrant-unbundled-2.2.4.0 vendor/bundle/ruby/2.6.0/gems/childprocess-0.6.3/lib/childprocess/unix/io.rb
childprocess-1.0.0 lib/childprocess/unix/io.rb
vagrant-unbundled-2.2.3.0 vendor/bundle/ruby/2.5.0/gems/childprocess-0.6.3/lib/childprocess/unix/io.rb
tdiary-5.0.11 vendor/bundle/gems/childprocess-0.9.0/lib/childprocess/unix/io.rb
vagrant-unbundled-2.2.2.0 vendor/bundle/ruby/2.5.0/gems/childprocess-0.6.3/lib/childprocess/unix/io.rb
vagrant-unbundled-2.2.0.0 vendor/bundle/ruby/2.5.0/gems/childprocess-0.6.3/lib/childprocess/unix/io.rb
config_gems_initialization_aim-0.1.4 vendor/bundle/ruby/2.5.0/gems/config_gems_initialization_aim-0.1.1/vendor/bundle/ruby/2.5.0/gems/childprocess-0.9.0/lib/childprocess/unix/io.rb
config_gems_initialization_aim-0.1.4 vendor/bundle/ruby/2.5.0/gems/childprocess-0.9.0/lib/childprocess/unix/io.rb
config_gems_initialization_aim-0.1.3 vendor/bundle/ruby/2.5.0/gems/childprocess-0.9.0/lib/childprocess/unix/io.rb