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.69.1 vendor/eac_ruby_utils/lib/eac_ruby_utils/console/speaker/node.rb
eac_ruby_utils-0.46.0 lib/eac_ruby_utils/console/speaker/node.rb
avm-tools-0.69.0 vendor/eac_ruby_utils/lib/eac_ruby_utils/console/speaker/node.rb
eac_ruby_utils-0.45.2 lib/eac_ruby_utils/console/speaker/node.rb
eac_ruby_utils-0.45.1 lib/eac_ruby_utils/console/speaker/node.rb
eac_ruby_utils-0.45.0 lib/eac_ruby_utils/console/speaker/node.rb
ehbrs-tools-0.13.1 vendor/eac_ruby_utils/lib/eac_ruby_utils/console/speaker/node.rb
avm-tools-0.68.0 vendor/eac_ruby_utils/lib/eac_ruby_utils/console/speaker/node.rb
eac_ruby_utils-0.44.0 lib/eac_ruby_utils/console/speaker/node.rb
avm-tools-0.67.0 vendor/eac_ruby_utils/lib/eac_ruby_utils/console/speaker/node.rb
avm-tools-0.66.0 vendor/eac_ruby_utils/lib/eac_ruby_utils/console/speaker/node.rb
avm-tools-0.65.0 vendor/eac_ruby_utils/lib/eac_ruby_utils/console/speaker/node.rb
avm-tools-0.64.2 vendor/eac_ruby_utils/lib/eac_ruby_utils/console/speaker/node.rb
avm-tools-0.64.1 vendor/eac_ruby_utils/lib/eac_ruby_utils/console/speaker/node.rb
avm-tools-0.64.0 vendor/eac_ruby_utils/lib/eac_ruby_utils/console/speaker/node.rb
avm-tools-0.63.0 vendor/eac_ruby_utils/lib/eac_ruby_utils/console/speaker/node.rb
avm-tools-0.62.4 vendor/eac_ruby_utils/lib/eac_ruby_utils/console/speaker/node.rb
avm-tools-0.62.3 vendor/eac_ruby_utils/lib/eac_ruby_utils/console/speaker/node.rb
avm-tools-0.62.2 vendor/eac_ruby_utils/lib/eac_ruby_utils/console/speaker/node.rb
avm-tools-0.62.1 vendor/eac_ruby_utils/lib/eac_ruby_utils/console/speaker/node.rb