module Arachni::Element::Capabilities::WithAuditor

@author Tasos “Zapotek” Laskos <tasos.laskos@arachni-scanner.com>

Attributes

auditor[RW]

Sets the auditor for this element.

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

@return [Arachni::Check::Auditor]

Public Instance Methods

dup() click to toggle source
Calls superclass method
# File lib/arachni/element/capabilities/with_auditor.rb, line 42
def dup
    copy_with_auditor( super )
end
marshal_dump() click to toggle source
Calls superclass method
# File lib/arachni/element/capabilities/with_auditor.rb, line 46
def marshal_dump
    super.tap { |h| h.delete :@auditor }
end
orphan?() click to toggle source

@return [Bool]

`true` if it has no auditor, `false` otherwise.
# File lib/arachni/element/capabilities/with_auditor.rb, line 38
def orphan?
    !auditor
end
prepare_for_report() click to toggle source

Removes the associated {#auditor}.

Calls superclass method
# File lib/arachni/element/capabilities/with_auditor.rb, line 31
def prepare_for_report
    super if defined? super
    remove_auditor
end
remove_auditor() click to toggle source

Removes the {#auditor} from this element.

# File lib/arachni/element/capabilities/with_auditor.rb, line 26
def remove_auditor
    self.auditor = nil
end

Private Instance Methods

copy_with_auditor( other ) click to toggle source
# File lib/arachni/element/capabilities/with_auditor.rb, line 52
def copy_with_auditor( other )
    other.auditor = self.auditor
    other
end