A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://ruby.github.io/rdoc/RDoc/Markup/Paragraph.html below:

class RDoc::Markup::Paragraph - rdoc Documentation

  1. RDoc::
  2. Markup::
  3. Paragraph
class RDoc::Markup::Paragraph

A Paragraph of text

Public Instance Methods

Source

# File lib/rdoc/markup/paragraph.rb, line 10
def accept(visitor)
  visitor.accept_paragraph self
end

Calls accept_paragraph on visitor

Source

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

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


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4