1# -*- coding: binary -*- 2# make sure the classes are defined before opening it to define submodule 3 4module Rex 5 module Ui 6 module Text 7 class Output 8 class Buffer 9 # Adds {#write} method to {Rex::Ui::Text::Output::Buffer} so it can 10 # function as a stand-in for `$stdout` 11 module Stdout 12 # Prints raw message. 13 # 14 # @param (see Rex::Ui::Text::Output::Buffer#write) 15 # @return (see Rex::Ui::Text::Output::Buffer#write) 16 def write(msg = '') 17 print_raw(msg) 18 end 19 end 20 end 21 end 22 end 23 end 24end 25 26