Flowdock
break_outmost_groups() public

No documentation

This method has no description. You can help the Ruby community by adding new notes.

Hide source
# File lib/prettyprint.rb, line 124
  def break_outmost_groups
    while @maxwidth < @output_width + @buffer_width
      return unless group = @group_queue.deq
      until group.breakables.empty?
        data = @buffer.shift
        @output_width = data.output(@output, @output_width)
        @buffer_width -= data.width
      end
      while !@buffer.empty? && Text === @buffer.first
        text = @buffer.shift
        @output_width = text.output(@output, @output_width)
        @buffer_width -= text.width
      end
    end
  end
Register or log in to add new notes.