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