Sha256: a58b93b1faa440b78e1727750524e64be5586561bb9e178540efc86ac69626ca
Contents?: true
Size: 778 Bytes
Versions: 6
Compression:
Stored size: 778 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 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
6 entries across 6 versions & 1 rubygems