Class: Warped::Emails::Layouts::Columns

Inherits:
Base
  • Object
show all
Defined in:
lib/warped/emails/components/layouts/columns.rb

Instance Attribute Summary

Attributes inherited from Base

#view_context

Instance Method Summary collapse

Methods inherited from Base

#content, #helpers, #render_in

Methods included from Styleable

#base_styles, #default_variants, included, #style, #variants

Methods included from Slottable

included, #slots

Instance Method Details

#templateObject



24
25
26
27
28
29
30
31
32
# File 'lib/warped/emails/components/layouts/columns.rb', line 24

def template
  tag.div(style:) do
    capture do
      cols.map do |col|
        concat tag.div(col, style: style(:col))
      end
    end
  end
end