Class: Aureus::Components::DataTableHeadColumn
- Inherits:
-
Renderable
- Object
- Renderable
- Aureus::Components::DataTableHeadColumn
- Defined in:
- lib/aureus/components/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.
74 75 76 77 |
# File 'lib/aureus/components/data_table.rb', line 74 def initialize name, sorting @name = name @sorting = sorting end |
Instance Method Details
#render ⇒ Object
79 80 81 |
# File 'lib/aureus/components/data_table.rb', line 79 def render content_tag 'th', @name, class: @sorting end |