Class: BootstrapEmail::Converter::Color
- Defined in:
- lib/bootstrap-email/converters/color.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
4 5 6 7 8 9 10 |
# File 'lib/bootstrap-email/converters/color.rb', line 4 def build each_node('*[class*=bg-]') do |node| next unless ['div'].include?(node.name) # only do automatic thing for div node.replace(template('table', classes: "#{node['class']} w-full", contents: node.delete('class') && node.inner_html)) end end |