Class: Brainzlab::Components::TableCell

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

Returns a new instance of TableCell.



58
59
60
# File 'lib/brainzlab/components/table.rb', line 58

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

Instance Method Details

#view_templateObject



62
63
64
# File 'lib/brainzlab/components/table.rb', line 62

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