Sha256: 1d574918577f6810f99367fd457584a4ad505b52cd2cfb2e1c28ad1609ca1bfc

Contents?: true

Size: 528 Bytes

Versions: 56

Compression:

Stored size: 528 Bytes

Contents

module ChildProcess
  class AbstractIO
    attr_reader :stderr, :stdout, :stdin

    def inherit!
      @stdout = STDOUT
      @stderr = STDERR
    end

    def stderr=(io)
      check_type io
      @stderr = io
    end

    def stdout=(io)
      check_type io
      @stdout = io
    end

    #
    # @api private
    #

    def _stdin=(io)
      check_type io
      @stdin = io
    end

    private

    def check_type(io)
      raise SubclassResponsibility, "check_type"
    end

  end
end

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/abstract_io.rb
vagrant-unbundled-2.2.7.0 vendor/bundle/ruby/2.7.0/gems/childprocess-0.6.3/lib/childprocess/abstract_io.rb
vagrant-unbundled-2.2.7.0 vendor/bundle/ruby/2.6.0/gems/childprocess-0.6.3/lib/childprocess/abstract_io.rb
vagrant-unbundled-2.2.6.2 vendor/bundle/ruby/2.6.0/gems/childprocess-0.6.3/lib/childprocess/abstract_io.rb
vagrant-unbundled-2.2.6.1 vendor/bundle/ruby/2.6.0/gems/childprocess-0.6.3/lib/childprocess/abstract_io.rb
vagrant-unbundled-2.2.6.0 vendor/bundle/ruby/2.6.0/gems/childprocess-0.6.3/lib/childprocess/abstract_io.rb
vagrant-unbundled-2.2.5.0 vendor/bundle/ruby/2.6.0/gems/childprocess-0.6.3/lib/childprocess/abstract_io.rb
vagrant-unbundled-2.2.5.0 vendor/bundle/ruby/2.5.0/gems/childprocess-0.6.3/lib/childprocess/abstract_io.rb
tdiary-5.0.13 vendor/bundle/gems/childprocess-0.9.0/lib/childprocess/abstract_io.rb
tdiary-5.0.12.1 vendor/bundle/gems/childprocess-0.9.0/lib/childprocess/abstract_io.rb
vagrant-unbundled-2.2.4.0 vendor/bundle/ruby/2.5.0/gems/childprocess-0.6.3/lib/childprocess/abstract_io.rb
vagrant-unbundled-2.2.4.0 vendor/bundle/ruby/2.6.0/gems/childprocess-0.6.3/lib/childprocess/abstract_io.rb
childprocess-1.0.0 lib/childprocess/abstract_io.rb
vagrant-unbundled-2.2.3.0 vendor/bundle/ruby/2.5.0/gems/childprocess-0.6.3/lib/childprocess/abstract_io.rb
tdiary-5.0.11 vendor/bundle/gems/childprocess-0.9.0/lib/childprocess/abstract_io.rb
vagrant-unbundled-2.2.2.0 vendor/bundle/ruby/2.5.0/gems/childprocess-0.6.3/lib/childprocess/abstract_io.rb
vagrant-unbundled-2.2.0.0 vendor/bundle/ruby/2.5.0/gems/childprocess-0.6.3/lib/childprocess/abstract_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/abstract_io.rb
config_gems_initialization_aim-0.1.4 vendor/bundle/ruby/2.5.0/gems/childprocess-0.9.0/lib/childprocess/abstract_io.rb
config_gems_initialization_aim-0.1.3 vendor/bundle/ruby/2.5.0/gems/childprocess-0.9.0/lib/childprocess/abstract_io.rb