Class: Aureus::DataTableHeadColumn

Inherits:
Renderable show all
Defined in:
lib/aureus/data_table.rb

Instance Method Summary collapse

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

#renderObject



66
67
68
# File 'lib/aureus/data_table.rb', line 66

def render
	 "th", @name, :class => @sorting
end