Method: Y2Issues::Presenter#to_html

Defined in:
library/general/src/lib/y2issues/presenter.rb

#to_htmlString

Return the HTML representation of a list of issues

Returns:

  • (String)

    HTML representing the list of issues



50
51
52
53
54
55
56
57
# File 'library/general/src/lib/y2issues/presenter.rb', line 50

def to_html
  errors, warnings = issues.partition(&:error?)
  parts = []
  parts << error_text(errors) unless errors.empty?
  parts << warning_text(warnings) unless warnings.empty?

  parts.join
end