title: Wrapping text into lines at word boundaries
body: <p>1) I want to auto wrap a text by words so that each line does not exceed 56 characters. 
  Is there a method for doing this, or do I need to roll my own?</p>
  
  <pre><code>@comment_text = "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."
  </code></pre>
  
  <p>My view:</p>
  
  <pre><code>&lt;%= @comment_text.cool_string_function( 56 ) %&gt;
  </code></pre>
  
  <p>would render:</p>
  
  <pre><code>Lorem ipsum dolor sit amet, consectetur adipisicing
  elit, sed do eiusmod tempor incididunt ut labore et 
  dolore magna aliqua.
  </code></pre>
  
  <p>2) I want to indent the text by 4 spaces so that:</p>
  
  <pre><code>&lt;%= @comment_text.cool_string_function( {:width =&gt; 56, :indent =&gt; 4} ) %&gt;
  </code></pre>
  
  <p>would render:</p>
  
  <pre><code>    Lorem ipsum dolor sit amet, consectetur adipisicing
      elit, sed do eiusmod tempor incididunt ut labore et 
      dolore magna aliqua.
  </code></pre>