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.
125 126 127 |
# File 'lib/ronin/ui/output/output.rb', line 125 def Output.handler @handler end |
.handler=(new_handler) ⇒ Object
Sets the current Output handler.
141 142 143 |
# File 'lib/ronin/ui/output/output.rb', line 141 def Output.handler=(new_handler) @handler = new_handler end |
.quiet! ⇒ Output
Disables verbose output.
100 101 102 103 |
# File 'lib/ronin/ui/output/output.rb', line 100 def Output.quiet! @mode = :quiet return self end |
.quiet? ⇒ Boolean
Returns Specifies whether quiet output is enabled.
61 62 63 |
# File 'lib/ronin/ui/output/output.rb', line 61 def Output.quiet? @mode == :quiet end |
.silent! ⇒ Output
Disables all output.
112 113 114 115 |
# File 'lib/ronin/ui/output/output.rb', line 112 def Output.silent! @mode = :silent return self end |
.silent? ⇒ Boolean
Returns Specifies whether silent output is enabled.
73 74 75 |
# File 'lib/ronin/ui/output/output.rb', line 73 def Output.silent? @mode == :silent end |
.verbose! ⇒ Output
Enables verbose output.
86 87 88 89 |
# File 'lib/ronin/ui/output/output.rb', line 86 def Output.verbose! @mode = :verbose return self end |
.verbose? ⇒ Boolean
Returns Specifies whether verbose output is enabled.
49 50 51 |
# File 'lib/ronin/ui/output/output.rb', line 49 def Output.verbose? @mode == :verbose end |