Sha256: a6fe39c03f4bac9d608cb8e5c156a7aea5c49c12e97caf148e9cff5e48a2562c

Contents?: true

Size: 666 Bytes

Versions: 8

Compression:

Stored size: 666 Bytes

Contents

# frozen_string_literal: true

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

module EacCli
  module Speaker
    class Node
      attr_accessor :stdin, :stdout, :stderr, :stderr_line_prefix

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

      def configure
        yield(self)
        self
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 3 rubygems

Version Path
eac_cli-0.19.0 lib/eac_cli/speaker/node.rb
avm-tools-0.101.0 vendor/eac_cli/lib/eac_cli/speaker/node.rb
eac_cli-0.18.0 lib/eac_cli/speaker/node.rb
avm-tools-0.100.0 vendor/eac_cli/lib/eac_cli/speaker/node.rb
ehbrs-tools-0.21.0 vendor/eac_cli/lib/eac_cli/speaker/node.rb
avm-tools-0.99.1 vendor/eac_cli/lib/eac_cli/speaker/node.rb
eac_cli-0.17.0 lib/eac_cli/speaker/node.rb
avm-tools-0.99.0 vendor/eac_cli/lib/eac_cli/speaker/node.rb