Class: Ronin::UI::Output::Terminal::Raw

Inherits:
Object
  • Object
show all
Defined in:
lib/ronin/ui/output/terminal/raw.rb

Overview

The handler for raw output to the terminal.

Class Method Summary collapse

Class Method Details

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Prints a debug message.

Parameters:

  • message (String)

    The message to print.

Since:

  • 1.0.0


67
68
69
# File 'lib/ronin/ui/output/terminal/raw.rb', line 67

def self.print_debug(message)
  $stdout.puts "[=] #{message}"
end

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Prints an error messages.

Parameters:

  • message (String)

    The message to print.

Since:

  • 1.0.0


95
96
97
# File 'lib/ronin/ui/output/terminal/raw.rb', line 95

def self.print_error(message)
  $stdout.puts "[!] #{message}"
end

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Prints an info message.

Parameters:

  • message (String)

    The message to print.

Since:

  • 1.0.0


53
54
55
# File 'lib/ronin/ui/output/terminal/raw.rb', line 53

def self.print_info(message)
  $stdout.puts "[-] #{message}"
end

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Prints a warning message.

Parameters:

  • message (String)

    The message to print.

Since:

  • 1.0.0


81
82
83
# File 'lib/ronin/ui/output/terminal/raw.rb', line 81

def self.print_warning(message)
  $stdout.puts "[*] #{message}"
end

.write(data) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Writes data to STDOUT.

Parameters:

  • data (String)

    The data to write.

Since:

  • 1.0.0


39
40
41
# File 'lib/ronin/ui/output/terminal/raw.rb', line 39

def self.write(data)
  $stdout.write(data)
end