class Arachni::Issue::Severity::Base
Represents an {Issue}‘s severity.
@author Tasos “Zapotek” Laskos <tasos.laskos@arachni-scanner.com>
Public Class Methods
new( severity )
click to toggle source
# File lib/arachni/issue/severity/base.rb, line 20 def initialize( severity ) @severity = severity.to_s.downcase.to_sym end
Public Instance Methods
<=>( other )
click to toggle source
# File lib/arachni/issue/severity/base.rb, line 24 def <=>( other ) ORDER.rindex( other.to_sym ) <=> ORDER.rindex( to_sym ) end
to_s()
click to toggle source
# File lib/arachni/issue/severity/base.rb, line 32 def to_s @severity.to_s end
to_sym()
click to toggle source
# File lib/arachni/issue/severity/base.rb, line 28 def to_sym @severity end