/
githubmirror
/
metasploit-framework
Обзор
Документация
Войти
/
githubmirror
/
metasploit-framework
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
lib/rex/ui/text/output/buffer.rb
61 строка
741 B
dwelch-r7
Zeitwerk `rex` folder
08 фев 2021, 15:24
08 фев 2021, 15:24
b95be3e
Код
Авторство
О чём код?
# -*- coding: binary -*- module Rex module Ui module Text ### # # This class implements output against a buffer. # ### class Output::Buffer < Rex::Ui::Text::Output # # Initializes an output buffer. # def initialize self.buf = '' end def supports_color? false end # # Appends the supplied message to the output buffer. # def print_raw(msg = '') self.buf += msg || '' msg end # # Read everything out of the buffer and reset it # def dump_buffer self.buf ||= '' buffer = self.buf.dup reset() buffer end # # Reset the buffer to an empty string. # def reset self.buf = '' end # # The underlying buffer state. # attr_accessor :buf end end end end