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