Class: GherkinLint::Warning

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

Overview

entity value class for warnings

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 GherkinLint::Issue

Instance Method Details

#renderObject



28
29
30
31
32
33
# File 'lib/gherkin_lint/issue.rb', line 28

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