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.
51 52 53 54 |
# File 'app/helpers/katalyst/content/frontend_helper.rb', line 51 def initialize(template, item) self.template = template self.item = item end |
Instance Attribute Details
#item ⇒ Object
Returns the value of attribute item.
47 48 49 |
# File 'app/helpers/katalyst/content/frontend_helper.rb', line 47 def item @item end |
#template ⇒ Object
Returns the value of attribute template.
47 48 49 |
# File 'app/helpers/katalyst/content/frontend_helper.rb', line 47 def template @template end |
Instance Method Details
#render ⇒ Object
56 57 58 59 60 |
# File 'app/helpers/katalyst/content/frontend_helper.rb', line 56 def render(**, &) content_tag tag, **(**) do content_tag(:div, &) end end |