instance method paragraphs

Ruby on Rails 2.2.3

Since v2.2.3 Last seen in v2.3.18

Available in: v2.2.3 v2.3.18

Signature

paragraphs(to_wrap = nil)

Considers each element of text (provided or internal) as a paragraph. If #first_indent is the same as #body_indent, then paragraphs will be separated by a single empty line in the result; otherwise, the paragraphs will follow immediately after each other. Uses #format to do the heavy lifting.

Parameters

to_wrap opt = nil
Source
# File actionmailer/lib/action_mailer/vendor/text-format-0.6.3/text/format.rb, line 902
    def paragraphs(to_wrap = nil)
      to_wrap = @text if to_wrap.nil?
      __paragraphs([to_wrap].flatten)
    end

Defined in actionmailer/lib/action_mailer/vendor/text-format-0.6.3/text/format.rb line 902 · View on GitHub · Improve this page · Find usages on GitHub

Defined in Text::Format

Type at least 2 characters to search.

↑↓ navigate · open · esc close