Class: Arachni::Plugin::Formatter
- Includes:
- UI::Output
- Defined in:
- lib/arachni/plugin/base.rb
Overview
Will be extended by plugin formatters which provide plugin data formatting for the reports.
Plugin formatters will be in turn ran by [Arachni::Report::Bas#format_plugin_results].
Instance Attribute Summary collapse
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#results ⇒ Object
readonly
Returns the value of attribute results.
Instance Method Summary collapse
-
#initialize(plugin_data) ⇒ Formatter
constructor
A new instance of Formatter.
- #run ⇒ Object
Methods included from UI::Output
#debug?, #debug_off, #debug_on, #disable_only_positives, #error_logfile, #flush_buffer, #log_error, #mute, #muted?, old_reset_output_options, #only_positives, #only_positives?, #print_bad, #print_debug, #print_debug_backtrace, #print_debug_pp, #print_error, #print_error_backtrace, #print_info, #print_line, #print_ok, #print_status, #print_verbose, #reroute_to_file, #reroute_to_file?, reset_output_options, #set_buffer_cap, #set_error_logfile, #uncap_buffer, #unmute, #verbose, #verbose?
Constructor Details
#initialize(plugin_data) ⇒ Formatter
Returns a new instance of Formatter.
35 36 37 38 |
# File 'lib/arachni/plugin/base.rb', line 35 def initialize( plugin_data ) @results = plugin_data[:results] @description = plugin_data[:description] end |
Instance Attribute Details
#description ⇒ Object (readonly)
Returns the value of attribute description.
33 34 35 |
# File 'lib/arachni/plugin/base.rb', line 33 def description @description end |
#results ⇒ Object (readonly)
Returns the value of attribute results.
32 33 34 |
# File 'lib/arachni/plugin/base.rb', line 32 def results @results end |
Instance Method Details
#run ⇒ Object
40 41 |
# File 'lib/arachni/plugin/base.rb', line 40 def run end |