class Console::Output::Terminal::Buffer

Represents an output buffer that formats lines with a prefix.

def initialize(prefix = nil)

@parameter prefix [String] The prefix to use for each line.

Create a new buffer with the given prefix.
def initialize(prefix = nil)
	@prefix = prefix
	
	super()
end

def puts(*lines, prefix: @prefix)

@parameter prefix [String] The prefix to use for each line.
@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