class Console::Output::Terminal::Buffer
Represents an output buffer that formats lines with a prefix.
def initialize(prefix = nil)
Create a new buffer with the given prefix.
def initialize(prefix = nil) @prefix = prefix super() end
def puts(*lines, prefix: @prefix)
@parameter lines [Array] The lines to write.
Write lines using the given prefix.
def puts(*lines, prefix: @prefix) lines.each do |line| self.write(prefix) if prefix super(line) end end