Class: Cheveret::Table::Base

Inherits:
Object
  • Object
show all
Includes:
Builder::Divider, Columns, Data, Locale, Mapping, Rendering, Sizing, Sorting
Defined in:
lib/cheveret/table.rb

Instance Attribute Summary

Attributes included from Sorting

#sort_column, #sort_direction, #sort_param, #sort_url

Attributes included from Sizing

#width

Attributes included from Rendering

#template

Attributes included from Data

#collection

Instance Method Summary collapse

Methods included from Builder::Divider

#tag

Methods included from Sorting

included, #render_th, #table_header

Methods included from Sizing

included, #needs_resize?, #render_td, #render_th, #resize!

Methods included from Locale

#render_th, #table_header_for

Methods included from Rendering

included, #render, #render_rows, #render_table, #render_tbody, #render_td, #render_th, #render_thead

Methods included from Mapping

included, #table_data, #table_data_for, #table_header, #table_header_for

Methods included from Data

#initialize, #proxy

Methods included from Columns

#columns, included

Instance Method Details

#config(options) ⇒ Object



41
42
43
# File 'lib/cheveret/table.rb', line 41

def config(options)
  options.each { |k, v| send(:"#{k}=", v) if respond_to?(:"#{k}=") }
end