title: Truncate #inspect output in irb (ruby)
body: <p>I want to truncate #inspect output in irb (a large output must be cropped to MAX_LEN).</p>
  
  <p>Currently, I override :inspect, :to_s methods for all specific objects.</p>
  
  <p>Is there are other solution? </p>
  
  <ul>
  <li>change $stdout ?</li>
  <li>other?</li>
  </ul>