Formats text into a nice paragraph format. The text is separated into words and then reassembled a word at a time using the settings of this Format object. If a word is larger than the number of columns available for formatting, then that word will appear on the line by itself.
If to_wrap is nil, then the value of #text will be worked on.
Source Code
# File action_mailer/vendor/text-format-0.6.3/text/format.rb, line 888 def format(to_wrap = nil) to_wrap = @text if to_wrap.nil? if to_wrap.class == Array __format(to_wrap[0]) else __format(to_wrap) end end
<code/>and<pre/>for code samples.