Class: Brainzlab::Components::TableHead

Inherits:
Base
  • Object
show all
Defined in:
lib/brainzlab/components/table.rb

Instance Method Summary collapse

Methods inherited from Base

#classes

Constructor Details

#initialize(**attrs) ⇒ TableHead

Returns a new instance of TableHead.



48
49
50
# File 'lib/brainzlab/components/table.rb', line 48

def initialize(**attrs)
  @attrs = attrs
end

Instance Method Details

#view_templateObject



52
53
54
# File 'lib/brainzlab/components/table.rb', line 52

def view_template(&)
  th(**@attrs, &)
end