Sha256: 2f8dc30dd6a1f6af466139b8c2dfe565f3219b8cc27cd52a9e661f203f2f22fa
Contents?: true
Size: 763 Bytes
Versions: 5
Compression:
Stored size: 763 Bytes
Contents
=begin Copyright 2010-2022 Ecsypno <http://www.ecsypno.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 class Issue module Severity # Represents an {Issue}'s severity. # # @author Tasos "Zapotek" Laskos <tasos.laskos@arachni-scanner.com> class Base include Comparable def initialize( severity ) @severity = severity.to_s.downcase.to_sym end def <=>( other ) ORDER.rindex( other.to_sym ) <=> ORDER.rindex( to_sym ) end def to_sym @severity end def to_s @severity.to_s end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems