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
Class Method Summary collapse
-
.handler ⇒ Ronin::UI::Output::Handler
The current Output handler.
-
.handler=(new_handler) ⇒ Object
Sets the current Output handler.
-
.quiet! ⇒ Output
Disables verbose output.
-
.quiet? ⇒ Boolean
Specifies whether quiet output is enabled.
-
.silent! ⇒ Output
Disables all output.
-
.silent? ⇒ Boolean
Specifies whether silent output is enabled.
-
.verbose! ⇒ Output
Enables verbose output.
-
.verbose? ⇒ Boolean
Specifies whether verbose output is enabled.
Class Method Details
.handler ⇒ Ronin::UI::Output::Handler
Returns The current Output handler.
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.
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.
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.
57 58 59 |
# File 'lib/ronin/ui/output/output.rb', line 57 def self.quiet? @mode == :quiet end |
.silent! ⇒ Output
Disables all output.
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.
69 70 71 |
# File 'lib/ronin/ui/output/output.rb', line 69 def self.silent? @mode == :silent end |
.verbose! ⇒ Output
Enables verbose output.
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.
45 46 47 |
# File 'lib/ronin/ui/output/output.rb', line 45 def self.verbose? @mode == :verbose end |