method
output
v8.1.1 -
Show latest stable
- Class:
CodeBlockConverter
output()private
No documentation available.
# File tools/rdoc-to-md, line 179
def output
out = +""
@source.each_line.with_index do |old_line, i|
line_number = i + 1
out << "\n" << MD_DIRECTIVE << "\n" if line_number == 2
if @cv.old_comment_lines.include?(line_number)
if new_comment = @cv.new_comments[line_number]
indentation = old_line.index("#")
new_comment.write!(out, indentation)
end
else
out << old_line
end
end
out
end