Class: DisplayFor::Element::Html
- Defined in:
- lib/display_for/element/html.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
#default_label, #html_options, #initialize, #label, #link_to
Constructor Details
This class inherits a constructor from DisplayFor::Element::Base
Instance Method Details
#content(resource) ⇒ Object
5 6 7 |
# File 'lib/display_for/element/html.rb', line 5 def content(resource) @builder.template.capture(resource, &@block) end |