Sha256: 3dc609ebc9feffd1085e14fa28881991d086f10c3da66644e8b0271e84f2b079

Contents?: true

Size: 785 Bytes

Versions: 148

Compression:

Stored size: 785 Bytes

Contents

# frozen_string_literal: true

require 'eac_ruby_utils/patches/object/if_present'
require 'eac_ruby_utils/console/speaker/_constants'

module EacRubyUtils
  module Console
    module Speaker
      class Node
        attr_accessor :stdin, :stdout, :stderr, :stderr_line_prefix

        def initialize(parent = nil)
          self.stdin = parent.if_present(::EacRubyUtils::Console::Speaker::STDIN, &:stdin)
          self.stdout = parent.if_present(::EacRubyUtils::Console::Speaker::STDOUT, &:stdout)
          self.stderr = parent.if_present(::EacRubyUtils::Console::Speaker::STDERR, &:stderr)
          self.stderr_line_prefix = parent.if_present('', &:stderr_line_prefix)
        end

        def configure
          yield(self)
          self
        end
      end
    end
  end
end

Version data entries

148 entries across 148 versions & 3 rubygems

Version Path
eac_ruby_utils-0.58.1 lib/eac_ruby_utils/console/speaker/node.rb
avm-tools-0.88.0 vendor/eac_ruby_utils/lib/eac_ruby_utils/console/speaker/node.rb
avm-tools-0.87.1 vendor/eac_ruby_utils/lib/eac_ruby_utils/console/speaker/node.rb
ehbrs-tools-0.19.0 vendor/eac_ruby_utils/lib/eac_ruby_utils/console/speaker/node.rb
eac_ruby_utils-0.58.0 lib/eac_ruby_utils/console/speaker/node.rb
ehbrs-tools-0.18.0 vendor/eac_ruby_utils/lib/eac_ruby_utils/console/speaker/node.rb
eac_ruby_utils-0.57.2 lib/eac_ruby_utils/console/speaker/node.rb
avm-tools-0.87.0 vendor/eac_ruby_utils/lib/eac_ruby_utils/console/speaker/node.rb
eac_ruby_utils-0.57.1 lib/eac_ruby_utils/console/speaker/node.rb
eac_ruby_utils-0.57.0 lib/eac_ruby_utils/console/speaker/node.rb
ehbrs-tools-0.17.0 vendor/eac_ruby_utils/lib/eac_ruby_utils/console/speaker/node.rb
avm-tools-0.86.0 vendor/eac_ruby_utils/lib/eac_ruby_utils/console/speaker/node.rb
avm-tools-0.85.1 vendor/eac_ruby_utils/lib/eac_ruby_utils/console/speaker/node.rb
eac_ruby_utils-0.56.2 lib/eac_ruby_utils/console/speaker/node.rb
avm-tools-0.85.0 vendor/eac_ruby_utils/lib/eac_ruby_utils/console/speaker/node.rb
eac_ruby_utils-0.56.1 lib/eac_ruby_utils/console/speaker/node.rb
ehbrs-tools-0.16.5 vendor/eac_ruby_utils/lib/eac_ruby_utils/console/speaker/node.rb
avm-tools-0.84.0 vendor/eac_ruby_utils/lib/eac_ruby_utils/console/speaker/node.rb
eac_ruby_utils-0.56.0 lib/eac_ruby_utils/console/speaker/node.rb
avm-tools-0.83.0 vendor/eac_ruby_utils/lib/eac_ruby_utils/console/speaker/node.rb