edshadi/cracking — pull request #4 by hwhelchel (2014-04-06 00:41:36+00:00)
Title: String buffer

StringBuffers are used in Java to limit the number of string objects created in memory when concatenating strings.

In Ruby we can use the String#concat or String#<< methods to update strings in place so there is not a need for StringBuffers as far as I can see. It also looks like the StringIO class might serve a similar purpose.

This will add a Ruby implementation of a Java StringBuffer to emulate the behavior.