Method: Tableficate::Column#initialize
- Defined in:
- lib/tableficate/column.rb
#initialize(table, name, options = {}, &block) ⇒ Column
Returns a new instance of Column.
5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/tableficate/column.rb', line 5 def initialize(table, name, = {}, &block) @table = table @name = name @block = block @header = .delete(:header) || name.to_s.titleize @header_attrs = .delete(:header_attrs) || {} @cell_attrs = .delete(:cell_attrs) || {} @show_sort = .delete(:show_sort) || false @attrs = end |