Class: Grapple::Components::HtmlCaption

Inherits:
HtmlComponent show all
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

#initialize, setting

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(*options, &block)
  html = capture_block(options[0] || '', &block)
  "<caption>\n#{html}</caption>\n".html_safe
end