def separator (params = {})
      params = style.separator.merge params
      params[:width] ||= style.width
      raise Exception::new('Define a width for using separators') unless params[:width]
      line = fill(params[:pattern], params[:width])
      #replace the width with the box width to align the separator
      params[:width] = style.width
      add line, params
    end
def separator (params = {})
      params = style.separator.merge params
      params[:width] ||= style.width
      raise Exception::new('Define a width for using separators') unless params[:width]
      line = fill(params[:pattern], params[:width])
      #replace the width with the box width to align the separator
      params[:width] = style.width
      add line, params
    end
Adds a line separator.

 === Args

 +params+::
   A hash of parameters. Currently supported are:
     pattern: the pattern to build the line
     color: the separator color (see #Yummi#COLORS)
     width: the separator width (#self#width will be used if unset)
     align: the separator alignment (see #Yummi#Aligner)