Class: Katalyst::Content::FrontendBuilder
- Inherits:
-
Object
- Object
- Katalyst::Content::FrontendBuilder
- Defined in:
- app/helpers/katalyst/content/frontend_helper.rb
Instance Attribute Summary collapse
-
#item ⇒ Object
Returns the value of attribute item.
-
#template ⇒ Object
Returns the value of attribute template.
Instance Method Summary collapse
-
#initialize(template, item) ⇒ FrontendBuilder
constructor
A new instance of FrontendBuilder.
- #render ⇒ Object
Constructor Details
#initialize(template, item) ⇒ FrontendBuilder
Returns a new instance of FrontendBuilder.
49 50 51 52 |
# File 'app/helpers/katalyst/content/frontend_helper.rb', line 49 def initialize(template, item) self.template = template self.item = item end |
Instance Attribute Details
#item ⇒ Object
Returns the value of attribute item.
45 46 47 |
# File 'app/helpers/katalyst/content/frontend_helper.rb', line 45 def item @item end |
#template ⇒ Object
Returns the value of attribute template.
45 46 47 |
# File 'app/helpers/katalyst/content/frontend_helper.rb', line 45 def template @template end |
Instance Method Details
#render ⇒ Object
54 55 56 57 58 |
# File 'app/helpers/katalyst/content/frontend_helper.rb', line 54 def render(**, &) content_tag tag, **(**) do content_tag(:div, &) end end |