Module: Ronin::UI::Output

Defined in:
lib/ronin/ui/output/output.rb,
lib/ronin/ui/output/helpers.rb,
lib/ronin/ui/output/terminal/raw.rb,
lib/ronin/ui/output/terminal/color.rb

Overview

Controls Output from Ronin.

Defined Under Namespace

Modules: Helpers, Terminal

Class Method Summary (collapse)

Class Method Details

+ (Ronin::UI::Output::Handler) handler

Returns The current Output handler.

Returns:

  • (Ronin::UI::Output::Handler)

    The current Output handler.

Since:

  • 0.3.0



121
122
123
# File 'lib/ronin/ui/output/output.rb', line 121

def self.handler
  @handler
end

+ (Object) handler=(new_handler)

Sets the current Output handler.

Parameters:

  • new_handler (Handler)

    The new output handler to use. Must provide the puts, print_info, print_debug, print_warning and print_error class methods.

Since:

  • 0.3.0



137
138
139
# File 'lib/ronin/ui/output/output.rb', line 137

def self.handler=(new_handler)
  @handler = new_handler
end

+ (Output) quiet!

Disables verbose output.

Returns:

Since:

  • 1.0.0



96
97
98
99
# File 'lib/ronin/ui/output/output.rb', line 96

def self.quiet!
  @mode = :quiet
  return self
end

+ (Boolean) quiet?

Returns Specifies whether quiet output is enabled.

Returns:

  • (Boolean)

    Specifies whether quiet output is enabled.

Since:

  • 0.3.0



57
58
59
# File 'lib/ronin/ui/output/output.rb', line 57

def self.quiet?
  @mode == :quiet
end

+ (Output) silent!

Disables all output.

Returns:

Since:

  • 1.0.0



108
109
110
111
# File 'lib/ronin/ui/output/output.rb', line 108

def self.silent!
  @mode = :silent
  return self
end

+ (Boolean) silent?

Returns Specifies whether silent output is enabled.

Returns:

  • (Boolean)

    Specifies whether silent output is enabled.

Since:

  • 0.3.0



69
70
71
# File 'lib/ronin/ui/output/output.rb', line 69

def self.silent?
  @mode == :silent
end

+ (Output) verbose!

Enables verbose output.

Returns:

Since:

  • 1.0.0



82
83
84
85
# File 'lib/ronin/ui/output/output.rb', line 82

def self.verbose!
  @mode = :verbose
  return self
end

+ (Boolean) verbose?

Returns Specifies whether verbose output is enabled.

Returns:

  • (Boolean)

    Specifies whether verbose output is enabled.

Since:

  • 0.3.0



45
46
47
# File 'lib/ronin/ui/output/output.rb', line 45

def self.verbose?
  @mode == :verbose
end