title: How to split the string by certain amount of characters in Ruby
body: <p>How to split the string by certain amount of characters in Ruby?</p>
  
  <p>For example, suppose that I have the following string:</p>
  
  <blockquote>
    <p>some_string</p>
  </blockquote>
  
  <p>and I want to split it by every 4th character, so the resulting strings will look like this:</p>
  
  <pre><code>som
  e_s
  tri
  ng
  </code></pre>
  
  <p>How can I do it?</p>
  
  <p>Thanks in advance.</p>