class CheckstyleReports::Severity
Constants
- VALUES
Public Class Methods
new(base)
click to toggle source
# File lib/checkstyle_reports/lib/severity.rb, line 7 def initialize(base) @base = base&.to_sym end
Public Instance Methods
<=(other)
click to toggle source
# File lib/checkstyle_reports/lib/severity.rb, line 11 def <=(other) return if @base.nil? return true if other.nil? VALUES.index(@base) <= VALUES.index(other.to_sym) end