Class: Brainzlab::Components::TableRow

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) ⇒ TableRow

Returns a new instance of TableRow.



38
39
40
# File 'lib/brainzlab/components/table.rb', line 38

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

Instance Method Details

#view_templateObject



42
43
44
# File 'lib/brainzlab/components/table.rb', line 42

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