Class: PaginatedTable::TableDescription
- Inherits:
-
Object
- Object
- PaginatedTable::TableDescription
- Defined in:
- lib/paginated_table/view_helpers.rb
Defined Under Namespace
Classes: Column
Instance Attribute Summary collapse
-
#columns ⇒ Object
readonly
Returns the value of attribute columns.
Instance Method Summary collapse
- #column(*args, &block) ⇒ Object
-
#initialize(description_proc = nil) ⇒ TableDescription
constructor
A new instance of TableDescription.
Constructor Details
#initialize(description_proc = nil) ⇒ TableDescription
Returns a new instance of TableDescription.
14 15 16 17 |
# File 'lib/paginated_table/view_helpers.rb', line 14 def initialize(description_proc = nil) @columns = [] description_proc.call(self) if description_proc end |
Instance Attribute Details
#columns ⇒ Object (readonly)
Returns the value of attribute columns.
12 13 14 |
# File 'lib/paginated_table/view_helpers.rb', line 12 def columns @columns end |