1## 2# A Paragraph of text 3 4class RDoc::Markup::Paragraph < RDoc::Markup::Raw 5 6 ## 7 # Calls #accept_paragraph on +visitor+ 8 9 def accept visitor 10 visitor.accept_paragraph self 11 end 12 13 ## 14 # Joins the raw paragraph text and converts inline HardBreaks to the 15 # +hard_break+ text. 16 17 def text hard_break = '' 18 @parts.map do |part| 19 if RDoc::Markup::HardBreak === part then 20 hard_break 21 else 22 part 23 end 24 end.join 25 end 26 27end 28 29