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