def add (obj, params = {})
      text = obj.to_s
      params = {
        :width => style.width,
        :align => style.align
      }.merge! params
      if params[:width]
        width = params[:width]
        words = text.gsub($/, ' ').split(' ') unless params[:raw]
        words ||= [text]
        buff = ''
        words.each do |word|
          # go to next line if the current word blows up the width limit
          if buff.size + word.size >= width and not buff.empty?
            _add_ buff, params
            buff = ''
          end
          buff << ' ' unless buff.empty?
          buff << word
        end
        unless buff.empty?
          _add_ buff, params
        end
      else
        text.each_line do |line|
          _add_ line, params
        end
      end
    end
def add (obj, params = {})
      text = obj.to_s
      params = {
        :width => style.width,
        :align => style.align
      }.merge! params
      if params[:width]
        width = params[:width]
        words = text.gsub($/, ' ').split(' ') unless params[:raw]
        words ||= [text]
        buff = ''
        words.each do |word|
          # go to next line if the current word blows up the width limit
          if buff.size + word.size >= width and not buff.empty?
            _add_ buff, params
            buff = ''
          end
          buff << ' ' unless buff.empty?
          buff << word
        end
        unless buff.empty?
          _add_ buff, params
        end
      else
        text.each_line do |line|
          _add_ line, params
        end
      end
    end
Adds a line text to this box

 === Args

 +obj+::
   The obj to add (will be converted to string).
 +params+::
   A hash of parameters. Currently supported are:
     color: the text color (see #Yummi#COLORS)
     width: the text maximum width. Set this to break the lines automatically.
            If the #width is set, this will override the box width for this lines.
     raw:   if true, the entire text will be used as one word to align the text.
     align: the text alignment (see #Yummi#Aligner)