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

.handlerRonin::UI::Output::Handler

Returns 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

.handler=(new_handler) ⇒ Object

Sets the current Output handler.

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

.quiet!Output

Disables verbose output.

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

.quiet?Boolean

Returns 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

.silent!Output

Disables all output.

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

.silent?Boolean

Returns 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

.verbose!Output

Enables verbose output.

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

.verbose?Boolean

Returns 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