Class: Grapple::Components::HtmlCaption
- Inherits:
-
HtmlComponent
- Object
- BaseComponent
- HtmlComponent
- Grapple::Components::HtmlCaption
- Defined in:
- lib/grapple/components/html_caption.rb
Instance Attribute Summary
Attributes inherited from BaseComponent
#builder, #columns, #params, #records, #template
Instance Method Summary collapse
Methods inherited from BaseComponent
Constructor Details
This class inherits a constructor from Grapple::Components::BaseComponent
Instance Method Details
#render(*options, &block) ⇒ Object
5 6 7 8 |
# File 'lib/grapple/components/html_caption.rb', line 5 def render(*, &block) html = capture_block([0] || '', &block) "<caption>\n#{html}</caption>\n".html_safe end |