class String::Builder

Overview

Similar to StringIO, but optimized for building a single string.

You should never have to deal with this class. Instead, use String.build.

Superclass hierarchy

Object
Reference
String::Builder

Included Modules

IO

Defined in:

Class Method Summary

Instance Method Summary

Class Method Detail

def self.build(capacity = 64, &block)

def self.new(string : String)

def self.new(capacity = 64)

Instance Method Detail

def buffer

def bytesize

def empty?

def read(slice : Slice(UInt8), count)

def to_s

def write(slice : Slice(UInt8), count)