class CC::Yaml::Nodes::Severity
Constants
- SEVERITIES
Public Instance Methods
value=(value)
click to toggle source
# File lib/cc/yaml/nodes/severity.rb, line 13 def value=(value) unless value.nil? normalized_value = value.to_s.strip.downcase if SEVERITIES.include? normalized_value @value = normalized_value else error("Unexpected severity %s", value.inspect) end end end