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.

Returns:

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

    The current Output handler.

Since:

  • 0.3.0



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.

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



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.

Returns:

Since:

  • 1.0.0



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.

Returns:

  • (Boolean)

    Specifies whether quiet output is enabled.

Since:

  • 0.3.0



61
62
63
# File 'lib/ronin/ui/output/output.rb', line 61

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

.silent!Output

Disables all output.

Returns:

Since:

  • 1.0.0



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.

Returns:

  • (Boolean)

    Specifies whether silent output is enabled.

Since:

  • 0.3.0



73
74
75
# File 'lib/ronin/ui/output/output.rb', line 73

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

.verbose!Output

Enables verbose output.

Returns:

Since:

  • 1.0.0



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.

Returns:

  • (Boolean)

    Specifies whether verbose output is enabled.

Since:

  • 0.3.0



49
50
51
# File 'lib/ronin/ui/output/output.rb', line 49

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