title: Ruby: How do I retrieve part of a string?
body: <p>I want a way to only display a set number of characters from a string/text value. </p>
  
  <p>I want it to work in a way that if <code>my_string.length &gt; 40</code> then only get first 40 characters from <code>my_string</code>?</p>