def outline_settings(*args)
    @outline.visible = args[0] || 1
    @outline.below = args[1] || 1
    @outline.right = args[2] || 1
    @outline.style = args[3] || 0

    # Ensure this is a boolean value for Window2
    @outline.visible = true unless @outline.visible?
  end
def outline_settings(*args)
    @outline.visible = args[0] || 1
    @outline.below = args[1] || 1
    @outline.right = args[2] || 1
    @outline.style = args[3] || 0

    # Ensure this is a boolean value for Window2
    @outline.visible = true unless @outline.visible?
  end
:call-seq:
   outline_settings(visible, symbols_below, symbols_right, auto_style)

 This method sets the properties for outlining and grouping. The defaults
 correspond to Excel's defaults.

 The outline_settings() method is used to control the appearance of
 outlines in Excel. Outlines are described in
 "OUTLINES AND GROUPING IN EXCEL".

 The _visible_ parameter is used to control whether or not outlines are
 visible. Setting this parameter to false will cause all outlines on the
 worksheet to be hidden. They can be unhidden in Excel by means of the
 "Show Outline Symbols" command button. The default setting is true for
 visible outlines.

     worksheet.outline_settings(false)

 The _symbols__below parameter is used to control whether the row outline
 symbol will appear above or below the outline level bar. The default
 setting is 1 for symbols to appear below the outline level bar.

 The symbols_right parameter is used to control whether the column outline
 symbol will appear to the left or the right of the outline level bar. The
 default setting is 1 for symbols to appear to the right of the outline
 level bar.

 The _auto_style_ parameter is used to control whether the automatic outline
 generator in Excel uses automatic styles when creating an outline. This has
 no effect on a file generated by WriteExcel but it does have an effect on
 how the worksheet behaves after it is created. The default setting is 0 for
 "Automatic Styles" to be turned off.

 The default settings for all of these parameters correspond to Excel's
 default parameters.

 The worksheet parameters controlled by outline_settings() are rarely used.