class Console::Terminal::Text
def print(*arguments)
When the argument is a proc/lambda, call it with self as the argument.
When the argument is a symbol, look up the style and inject it into the output stream.
Print out the given arguments.
def print(*arguments) arguments.each do |argument| case argument when Symbol @output.write(self[argument]) when Proc argument.call(self) else @output.write(argument) end end end