string_builderSourceStringBuilderBuffer

class Buffer

Definitions

def <<(value)

Allows us to pass StringBuilder objects into the buffer and have them show up as arrays. Once they're in the buffer we don't want nested buffers anyway.

Implementation

def <<(value)
  value = value.to_a unless value.is_a?(Symbol)
  super
end