Class: Renogen::Formatters::PlainText
- Defined in:
- lib/renogen/formatters/plain_text.rb
Overview
For formatting a change as plain text
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#write_change(change) ⇒ String
Outputs a line or block as the body for a change.
-
#write_group(group) ⇒ String
Outputs a line or block as a header for a group.
-
#write_header(header) ⇒ String
Outputs a line or block of text appearing at the top of the change log.
Methods inherited from Base
#header, #initialize, register, #table_formatter?, #write_footer, #write_group_end
Constructor Details
This class inherits a constructor from Renogen::Formatters::Base
Instance Method Details
#write_change(change) ⇒ String
Outputs a line or block as the body for a change.
28 29 30 |
# File 'lib/renogen/formatters/plain_text.rb', line 28 def write_change(change) "- #{change}" end |
#write_group(group) ⇒ String
Outputs a line or block as a header for a group.
20 21 22 |
# File 'lib/renogen/formatters/plain_text.rb', line 20 def write_group(group) "#{group}" end |
#write_header(header) ⇒ String
Outputs a line or block of text appearing at the top of the change log.
12 13 14 |
# File 'lib/renogen/formatters/plain_text.rb', line 12 def write_header(header) "#{header}\n " end |