Method: BootstrapEmail::Converter::AddMissingMetaTags#build

Defined in:
lib/bootstrap-email/converters/add_missing_meta_tags.rb

#buildObject


12
13
14
15
16
17
18
# File 'lib/bootstrap-email/converters/add_missing_meta_tags.rb', line 12

def build
  META_TAGS.each do |tag_hash|
    unless doc.at_css(tag_hash[:query])
      doc.at_css('head').prepend_child(tag_hash[:code])
    end
  end
end