Class: Chutney::Warning
Overview
entity value class for warnings
Instance Attribute Summary
Attributes inherited from Issue
#description, #name, #references
Instance Method Summary collapse
Methods inherited from Issue
Constructor Details
This class inherits a constructor from Chutney::Issue
Instance Method Details
#render ⇒ Object
30 31 32 33 34 35 |
# File 'lib/chutney/issue.rb', line 30 def render result = "#{yellow(@name)} (Warning)" result += " - #{@description}" unless @description.nil? result += "\n " + green(@references.uniq * "\n ") result end |