Class: Eac::DataTableHelper::Setup
- Inherits:
-
Object
- Object
- Eac::DataTableHelper::Setup
- Defined in:
- lib/eac/data_table_helper/setup.rb
Instance Attribute Summary collapse
-
#columns ⇒ Object
readonly
Returns the value of attribute columns.
-
#paging ⇒ Object
Returns the value of attribute paging.
Instance Method Summary collapse
- #column(label, path = nil, &block) ⇒ Object
-
#initialize ⇒ Setup
constructor
A new instance of Setup.
Constructor Details
#initialize ⇒ Setup
Returns a new instance of Setup.
8 9 10 11 |
# File 'lib/eac/data_table_helper/setup.rb', line 8 def initialize @columns = [] @paging = true end |
Instance Attribute Details
#columns ⇒ Object (readonly)
Returns the value of attribute columns.
5 6 7 |
# File 'lib/eac/data_table_helper/setup.rb', line 5 def columns @columns end |
#paging ⇒ Object
Returns the value of attribute paging.
6 7 8 |
# File 'lib/eac/data_table_helper/setup.rb', line 6 def paging @paging end |
Instance Method Details
#column(label, path = nil, &block) ⇒ Object
13 14 15 |
# File 'lib/eac/data_table_helper/setup.rb', line 13 def column(label, path = nil, &block) @columns << ::Eac::DataTableHelper::Column.new(label, path, block) end |