Sha256: 3381331c74adcee74a397ddcf04e8912d881ec2162b5d4bdc76afebcea0cc82e

Contents?: true

Size: 856 Bytes

Versions: 6

Compression:

Stored size: 856 Bytes

Contents

=begin
    Copyright 2010-2015 Tasos Laskos <tasos.laskos@arachni-scanner.com>

    This file is part of the Arachni Framework project and is subject to
    redistribution and commercial restrictions. Please see the Arachni Framework
    web site for more information on licensing and terms of use.
=end

module Arachni
module Component

# Provides output functionality to the checks via {Arachni::UI::Output},
# prefixing the check name to the output message.
#
# @author Tasos "Zapotek" Laskos <tasos.laskos@arachni-scanner.com>
module Output
    include UI::Output

    def depersonalize_output
        @depersonalize_output = true
    end

    def depersonalize_output?
        @depersonalize_output
    end

    def intercept_print_message( message )
        depersonalize_output? ? message : "#{self.class.fullname}: #{message}"
    end

end
end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
arachni-1.3.2 lib/arachni/component/output.rb
arachni-1.3.1 lib/arachni/component/output.rb
arachni-1.3 lib/arachni/component/output.rb
arachni-1.2.1 lib/arachni/component/output.rb
arachni-1.2 lib/arachni/component/output.rb
arachni-1.1 lib/arachni/component/output.rb