Module: OoxmlParser::WorksheetHelper

Included in:
Worksheet
Defined in:
lib/ooxml_parser/xlsx_parser/workbook/worksheet/worksheet_helper.rb

Overview

Module with helper methods for worksheet

Instance Method Summary collapse

Instance Method Details

#default_columns?True, False

Returns is columns are with default rules.

Returns:

  • (True, False)

    is columns are with default rules



7
8
9
10
11
12
# File 'lib/ooxml_parser/xlsx_parser/workbook/worksheet/worksheet_helper.rb', line 7

def default_columns?
  return true if @columns.empty?
  return true unless @columns.first.custom_width

  false
end