Sha256: 325e396011a50c7a396db711751f962d22ecd3a4ed5dce99c6e44b9b12db1c15
Contents?: true
Size: 778 Bytes
Versions: 7
Compression:
Stored size: 778 Bytes
Contents
=begin Copyright 2010-2014 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 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
7 entries across 7 versions & 1 rubygems