In Files

  • rdoc/markup/paragraph.rb

Class/Module Index [+]

Quicksearch

RDoc::Markup::Paragraph

A Paragraph of text

Public Instance Methods

accept(visitor) click to toggle source

Calls accept_paragraph on visitor

 
               # File rdoc/markup/paragraph.rb, line 9
def accept visitor
  visitor.accept_paragraph self
end
            
text(hard_break = '') click to toggle source

Joins the raw paragraph text and converts inline HardBreaks to the hard_break text.

 
               # File rdoc/markup/paragraph.rb, line 17
def text hard_break = ''
  @parts.map do |part|
    if RDoc::Markup::HardBreak === part then
      hard_break
    else
      part
    end
  end.join
end
            

Commenting is here to help enhance the documentation. For example, sample code, or clarification of the documentation.

If you are posting code samples in your comments, please wrap them in "<pre><code class="ruby" > ... </code></pre>" markup in order to get syntax highlighting.

If you have questions about Ruby or the documentation, please post to one of the Ruby mailing lists. You will get better, faster, help that way.

If you wish to post a correction of the docs, please do so, but also file a bug report so that it can be corrected for the next release. Thank you.

blog comments powered by Disqus