# PrettyPrint::Text (Class)

In: | prettyprint.rb
Parent: | Object

## Methods

add new output

## Attributes

width | [R] |

## Public Class methods

new()

[Source]

    # File prettyprint.rb, line 259
        def initialize
          @objs = []
          @width = 0
        end

## Public Instance methods

output(out, output_width)

[Source]

    # File prettyprint.rb, line 265
        def output(out, output_width)
          @objs.each {|obj| out << obj}
          output_width + @width
        end

add(obj, width)

[Source]

    # File prettyprint.rb, line 270
        def add(obj, width)
          @objs << obj
          @width += width
        end

[Validate]