Class: BootstrapEmail::Converter::Container
- Defined in:
- lib/bootstrap-email/converters/container.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from BootstrapEmail::Converter::Base
Instance Method Details
#build ⇒ Object
6 7 8 9 10 11 12 13 |
# File 'lib/bootstrap-email/converters/container.rb', line 6 def build each_node('.container') do |node| node.replace(template('container', classes: node['class'], contents: node.inner_html)) end each_node('.container-fluid') do |node| node.replace(template('table', classes: node['class'], contents: node.inner_html)) end end |