Class: Aureus::DataTableHeadColumn
- Inherits:
-
Renderable
- Object
- Renderable
- Aureus::DataTableHeadColumn
- Defined in:
- lib/aureus/data_table.rb
Instance Method Summary collapse
-
#initialize(name, sorting) ⇒ DataTableHeadColumn
constructor
A new instance of DataTableHeadColumn.
- #render ⇒ Object
Methods inherited from Renderable
#compact, #compact_render, #content_tag, #init
Constructor Details
#initialize(name, sorting) ⇒ DataTableHeadColumn
Returns a new instance of DataTableHeadColumn.
61 62 63 64 |
# File 'lib/aureus/data_table.rb', line 61 def initialize name, sorting @name = name @sorting = sorting end |
Instance Method Details
#render ⇒ Object
66 67 68 |
# File 'lib/aureus/data_table.rb', line 66 def render content_tag "th", @name, :class => @sorting end |