Severity class is simple value object about severity
@api private
@api private
@api private
# File lib/rubocop/cop/severity.rb, line 70 def <=>(other) level <=> other.level end
@api private
# File lib/rubocop/cop/severity.rb, line 56 def ==(other) if other.is_a?(Symbol) @name == other else @name == other.name end end
@api private
# File lib/rubocop/cop/severity.rb, line 46 def code @name.to_s[0].upcase end
@api private
# File lib/rubocop/cop/severity.rb, line 65 def hash @name.hash end
Generated with the Darkfish Rdoc Generator 2.