StringBuffer

A string buffer is a mutable strings, it is possible to insert, remove or replace characters in a string buffer.

It is better to use a string buffer when concatenating strings as it avoids the creation of temporary objects.

Example:

var sb = StringBuffer new
sb << "abc"
sb << 123
sb << "def"
sb << $g

Class Methods

Instance Methods