class Rex::Ui::Text::Output::File
This class implements output against a file
Attributes
fd[RW]
Public Class Methods
new(path)
click to toggle source
# File lib/rex/ui/text/output/file.rb, line 16 def initialize(path) self.fd = ::File.open(path, "wb") end
Public Instance Methods
close()
click to toggle source
# File lib/rex/ui/text/output/file.rb, line 34 def close self.fd.close if self.fd self.fd = nil end
print_raw(msg = '')
click to toggle source
Prints the supplied message to file output.
# File lib/rex/ui/text/output/file.rb, line 27 def print_raw(msg = '') return if not self.fd self.fd.write(msg) self.fd.flush msg end
supports_color?()
click to toggle source
# File lib/rex/ui/text/output/file.rb, line 20 def supports_color? false end