Method: Y2Issues::Presenter#to_html
- Defined in:
- library/general/src/lib/y2issues/presenter.rb
#to_html ⇒ String
Return the HTML representation of a 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 |