Method: TableSetting::Sheet#style_column

Defined in:
lib/table_setting/sheet.rb

#style_column(number, options) ⇒ Object



34
35
36
37
38
39
# File 'lib/table_setting/sheet.rb', line 34

def style_column(number, options)
  rows.each do |row|
    row.fill
    row.cells.select{|c| c.in_column?(number)}.map{|c| c.set_style(options)}
  end
end