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
avm-tools-0.98.0 vendor/eac_ruby_utils/lib/eac_ruby_utils/console/speaker/node.rb
avm-tools-0.97.0 vendor/eac_ruby_utils/lib/eac_ruby_utils/console/speaker/node.rb
avm-tools-0.96.0 vendor/eac_ruby_utils/lib/eac_ruby_utils/console/speaker/node.rb
eac_ruby_utils-0.63.0 lib/eac_ruby_utils/console/speaker/node.rb
avm-tools-0.95.0 vendor/eac_ruby_utils/lib/eac_ruby_utils/console/speaker/node.rb
eac_ruby_utils-0.62.1 lib/eac_ruby_utils/console/speaker/node.rb
avm-tools-0.94.3 vendor/eac_ruby_utils/lib/eac_ruby_utils/console/speaker/node.rb
eac_ruby_utils-0.62.0 lib/eac_ruby_utils/console/speaker/node.rb
eac_ruby_utils-0.61.0 lib/eac_ruby_utils/console/speaker/node.rb
avm-tools-0.94.2 vendor/eac_ruby_utils/lib/eac_ruby_utils/console/speaker/node.rb
eac_ruby_utils-0.60.0 lib/eac_ruby_utils/console/speaker/node.rb
avm-tools-0.94.1 vendor/eac_ruby_utils/lib/eac_ruby_utils/console/speaker/node.rb
eac_ruby_utils-0.59.0 lib/eac_ruby_utils/console/speaker/node.rb
ehbrs-tools-0.20.0 vendor/eac_ruby_utils/lib/eac_ruby_utils/console/speaker/node.rb
avm-tools-0.94.0 vendor/eac_ruby_utils/lib/eac_ruby_utils/console/speaker/node.rb
avm-tools-0.93.0 vendor/eac_ruby_utils/lib/eac_ruby_utils/console/speaker/node.rb
avm-tools-0.92.0 vendor/eac_ruby_utils/lib/eac_ruby_utils/console/speaker/node.rb
avm-tools-0.91.0 vendor/eac_ruby_utils/lib/eac_ruby_utils/console/speaker/node.rb
avm-tools-0.90.0 vendor/eac_ruby_utils/lib/eac_ruby_utils/console/speaker/node.rb
avm-tools-0.89.0 vendor/eac_ruby_utils/lib/eac_ruby_utils/console/speaker/node.rb