title: Split string into equal slices/chunks
body: <p>I have a string of length <code>N</code> and I want to split it into equal parts of length <code>L</code> (assuming the last part might be shorter).</p>
  
  <p>What I came up with is:</p>
  
  <pre><code>string.split('').each_slice(L).map(&amp;:join)
  </code></pre>
  
  <p>but this is toooooo long (and too ugly, to be honest.) Am I unable to read the documentation properly, or is there no built-in method to perform this task?</p>