Class: BootstrapEmail::Converter::Alert
- Defined in:
- lib/bootstrap-email/converters/alert.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 |
# File 'lib/bootstrap-email/converters/alert.rb', line 4 def build each_node('.alert') do |node| node.replace(template('table', classes: node['class'], contents: node.delete('class') && node.to_html)) end end |