Class: Katalyst::Content::FrontendBuilder

Inherits:
Object
  • Object
show all
Defined in:
app/helpers/katalyst/content/frontend_helper.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#itemObject

Returns the value of attribute item.



47
48
49
# File 'app/helpers/katalyst/content/frontend_helper.rb', line 47

def item
  @item
end

#templateObject

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

#renderObject



56
57
58
59
60
# File 'app/helpers/katalyst/content/frontend_helper.rb', line 56

def render(**, &)
   tag, **default_options(**) do
    (:div, &)
  end
end