Module: Tabledata::Parser

Defined in:
lib/tabledata/parser.rb

Class Method Summary collapse

Class Method Details

.table_class_for_sheet(sheet_name, options) ⇒ Object


91
92
93
94
95
96
97
98
99
100
101
# File 'lib/tabledata/parser.rb', line 91

def table_class_for_sheet(sheet_name, options)
  if options
    if options[:table_classes]
      options[:table_classes][sheet_name] || options[:table_class] || Table
    else
      options[:table_class] || Table
    end
  else
    Table
  end
end