Class: BootstrapEmail::Converter::Hr
- Defined in:
- lib/bootstrap-email/converters/hr.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 |
# File 'lib/bootstrap-email/converters/hr.rb', line 6 def build each_node('hr') do |node| default_margin = margin?(node) ? '' : 'my-5' node.replace(template('table', classes: "#{default_margin} hr #{node['class']}", contents: '')) end end |