enum Ameba::Severity

Defined in:

Enum Members

Error = 0
Warning = 1
Convention = 2

Class Method Summary

Instance Method Summary

Class Method Detail

def self.parse(name : String) #

Creates Severity by the name.

Severity.parse("convention") # => Severity::Convention
Severity.parse("foo-bar")    # => Exception: Incorrect severity name

Instance Method Detail

def convention? #

def error? #

def symbol #

Returns a symbol uniquely indicating severity.

Severity::Warning.symbol # => 'W'

def warning? #