Class: Effective::TableRows::ContentFor
- Inherits:
-
Effective::TableRow
- Object
- Effective::TableRow
- Effective::TableRows::ContentFor
- Defined in:
- app/models/effective/table_rows/content_for.rb
Instance Attribute Summary
Attributes inherited from Effective::TableRow
#builder, #name, #options, #template
Instance Method Summary collapse
Methods inherited from Effective::TableRow
#content, #initialize, #label, #value
Constructor Details
This class inherits a constructor from Effective::TableRow
Instance Method Details
#to_html(&block) ⇒ Object
7 8 9 10 11 |
# File 'app/models/effective/table_rows/content_for.rb', line 7 def to_html(&block) content_tag(:tr) do content_tag(:td, label) + content_tag(:td, template.capture(&block)) end end |