Class: Chutney::Error

Inherits:
Issue
  • Object
show all
Defined in:
lib/chutney/issue.rb

Overview

entity value class for errors

Instance Attribute Summary

Attributes inherited from Issue

#description, #name, #references

Instance Method Summary collapse

Methods inherited from Issue

#initialize

Constructor Details

This class inherits a constructor from Chutney::Issue

Instance Method Details

#renderObject



20
21
22
23
24
25
# File 'lib/chutney/issue.rb', line 20

def render
  result = red(@name)
  result += " - #{@description}" unless @description.nil?
  result += "\n  " + green(@references.uniq * "\n  ")
  result
end