class Renogen::Formatters::Html
For formatting a change into html format
Public Instance Methods
write_change(change)
click to toggle source
Outputs a line or block as the body for a change.
@param change [String] @return [String]
# File lib/renogen/formatters/html.rb, line 34 def write_change(change) " <li>#{change}</li>" end
write_group(group)
click to toggle source
Outputs a line or block as a header for a group.
@param group [String] @return [String]
# File lib/renogen/formatters/html.rb, line 19 def write_group(group) "<h2>#{group}</h2>\n<ul>" end
write_group_end()
click to toggle source
Outputs a line or block of text appearing after a group.
@return [String]
# File lib/renogen/formatters/html.rb, line 26 def write_group_end "</ul>" end
write_header(header)
click to toggle source
Outputs a line or block of text appearing at the top of the change log.
@param header [String] @return [String]
# File lib/renogen/formatters/html.rb, line 11 def write_header(header) "<html>\n<h1>#{header}</h1>\n" end