Sha256: 70db99f9ac7604968c58c331d59bddf4f40d15bec82a6a48a4d0b1de21e48122

Contents?: true

Size: 492 Bytes

Versions: 132

Compression:

Stored size: 492 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

132 entries across 116 versions & 19 rubygems

Version Path
chatops-rpc-0.0.2 fixtures/chatops-controller-example/vendor/bundle/ruby/2.5.0/gems/childprocess-3.0.0/lib/childprocess/abstract_io.rb
chatops-rpc-0.0.1 fixtures/chatops-controller-example/vendor/bundle/ruby/2.5.0/gems/childprocess-3.0.0/lib/childprocess/abstract_io.rb
childprocess-3.0.0 lib/childprocess/abstract_io.rb
childprocess-2.0.0 lib/childprocess/abstract_io.rb
childprocess-1.0.1 lib/childprocess/abstract_io.rb
vagrant-unbundled-1.9.1.1 vendor/bundle/ruby/2.4.0/gems/childprocess-0.5.9/lib/childprocess/abstract_io.rb
tdiary-5.0.2 vendor/bundle/gems/childprocess-0.5.9/lib/childprocess/abstract_io.rb
vagrant-compose-yaml-0.1.3 vendor/bundle/ruby/2.2.0/gems/childprocess-0.5.9/lib/childprocess/abstract_io.rb
vagrant-compose-yaml-0.1.2 vendor/bundle/ruby/2.2.0/gems/childprocess-0.5.9/lib/childprocess/abstract_io.rb
vagrant-compose-yaml-0.1.1 vendor/bundle/ruby/2.2.0/gems/childprocess-0.5.9/lib/childprocess/abstract_io.rb
vagrant-compose-yaml-0.1.0 vendor/bundle/ruby/2.2.0/gems/childprocess-0.5.9/lib/childprocess/abstract_io.rb
vagrant-unbundled-1.8.5.2 vendor/bundle/ruby/2.3.0/gems/childprocess-0.5.9/lib/childprocess/abstract_io.rb
vagrant-unbundled-1.8.5.1 vendor/bundle/ruby/2.3.0/gems/childprocess-0.5.9/lib/childprocess/abstract_io.rb
vagrant-unbundled-1.8.4.2 vendor/bundle/ruby/2.3.0/gems/childprocess-0.5.9/lib/childprocess/abstract_io.rb
vagrant-unbundled-1.8.4.1 vendor/bundle/ruby/2.3.0/gems/childprocess-0.5.9/lib/childprocess/abstract_io.rb
tdiary-5.0.1 vendor/bundle/gems/childprocess-0.5.9/lib/childprocess/abstract_io.rb
honeybadger-2.4.0 vendor/gems/ruby/1.9.1/gems/childprocess-0.5.6/lib/childprocess/abstract_io.rb
honeybadger-2.4.0 vendor/gems/ruby/2.1.0/gems/childprocess-0.5.3/lib/childprocess/abstract_io.rb
honeybadger-2.4.0 vendor/gems/ruby/2.2.0/gems/childprocess-0.5.6/lib/childprocess/abstract_io.rb
vagrant-unbundled-1.8.1.1 vendor/bundle/ruby/2.3.0/gems/childprocess-0.5.9/lib/childprocess/abstract_io.rb