Class: BootstrapEmail::Converter::Body

Inherits:
Base
  • Object
show all
Defined in:
lib/bootstrap-email/converters/body.rb

Instance Attribute Summary

Attributes inherited from Base

#doc

Instance Method Summary collapse

Methods inherited from Base

build, #initialize

Constructor Details

This class inherits a constructor from BootstrapEmail::Converter::Base

Instance Method Details

#buildObject



4
5
6
7
# File 'lib/bootstrap-email/converters/body.rb', line 4

def build
  body = doc.at_css('body')
  body.inner_html = template('body', classes: "#{body['class']} body", contents: body.inner_html)
end