Renders the standard two-line generated-file marker in the given comment style.
(comment_prefix, generator, command)
| 34 | |
| 35 | # Renders the standard two-line generated-file marker in the given comment style. |
| 36 | def self.render(comment_prefix, generator, command) |
| 37 | template = File.read(rlocation('_main/scripts/generated_note_template.txt')) |
| 38 | text = template.sub('{generator}', generator).sub('{command}', command) |
| 39 | text.rstrip.split("\n").map { |line| "#{comment_prefix} #{line}" }.join("\n") |
| 40 | end |
| 41 | end |
no test coverage detected