class Rex::Ui::Text::Output::File

This class implements output against a file

Attributes

fd[RW]

Public Class Methods

new(path, mode='wb') click to toggle source
# File lib/rex/ui/text/output/file.rb, line 16
def initialize(path, mode='wb')
  self.fd = ::File.open(path, mode)
end

Public Instance Methods

close() click to toggle source
# File lib/rex/ui/text/output/file.rb, line 35
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.

Also aliased as: write
supports_color?() click to toggle source
# File lib/rex/ui/text/output/file.rb, line 20
def supports_color?
  false
end
write(msg = '')
Alias for: print_raw