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