Module: Arachni::Element::Capabilities::WithAuditor

Includes:
Output
Included in:
Body, Auditable, GenericDOM, Path, Server
Defined in:
lib/arachni/element/capabilities/with_auditor.rb,
lib/arachni/element/capabilities/with_auditor/output.rb

Overview

Author:

Defined Under Namespace

Modules: Output

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#auditorArachni::Check::Auditor

Sets the auditor for this element.

The auditor provides its output, HTTP and issue logging interfaces.



23
24
25
# File 'lib/arachni/element/capabilities/with_auditor.rb', line 23

def auditor
  @auditor
end

Instance Method Details

#dupObject



42
43
44
# File 'lib/arachni/element/capabilities/with_auditor.rb', line 42

def dup
    copy_with_auditor( super )
end

#marshal_dumpObject



46
47
48
# File 'lib/arachni/element/capabilities/with_auditor.rb', line 46

def marshal_dump
    super.tap { |h| h.delete :@auditor }
end

#orphan?Bool

Returns ‘true` if it has no auditor, `false` otherwise.

Returns:

  • (Bool)

    ‘true` if it has no auditor, `false` otherwise.



38
39
40
# File 'lib/arachni/element/capabilities/with_auditor.rb', line 38

def orphan?
    !auditor
end

#prepare_for_reportObject

Removes the associated #auditor.



31
32
33
34
# File 'lib/arachni/element/capabilities/with_auditor.rb', line 31

def prepare_for_report
    super if defined? super
    remove_auditor
end

#remove_auditorObject

Removes the #auditor from this element.



26
27
28
# File 'lib/arachni/element/capabilities/with_auditor.rb', line 26

def remove_auditor
    self.auditor = nil
end