class RubyXL::ColumnRange

www.datypic.com/sc/ooxml/e-ssml_col-1.html

Constants

DEFAULT_WIDTH

Public Instance Methods

delete_column(col_index) click to toggle source
# File lib/rubyXL/objects/column_range.rb, line 18
def delete_column(col_index)
  col = col_index + 1
  self.min -=1 if min >= col
  self.max -=1 if max >= col
end
include?(col_index) click to toggle source
# File lib/rubyXL/objects/column_range.rb, line 30
def include?(col_index)
  ((min-1)..(max-1)).include?(col_index)
end
insert_column(col_index) click to toggle source
# File lib/rubyXL/objects/column_range.rb, line 24
def insert_column(col_index)
  col = col_index + 1
  self.min +=1 if min >= col
  self.max +=1 if max >= col - 1
end