Class: Axlsx::Col
- Inherits:
-
Object
- Object
- Axlsx::Col
- Defined in:
- lib/spreadsheet_architect/monkey_patches/axlsx_column_width.rb,
lib/spreadsheet_architect/monkey_patches/axlsx_column_width.rb
Instance Method Summary collapse
Methods included from SpreadsheetArchitect::AxlsxColumnWidthPatch
Instance Method Details
#width=(v) ⇒ Object
43 44 45 46 47 48 49 50 51 52 |
# File 'lib/spreadsheet_architect/monkey_patches/axlsx_column_width.rb', line 43 def width=(v) if v.nil? @custom_width = false @width = nil elsif @width.nil? || @width < v+5 @custom_width = true @best_fit = true @width = v + 5 end end |