Sha256: b3d1c415f3f634e0d8e08b6a161b5c9a7e933605c960abc951958baf9f45f23f
Contents?: true
Size: 410 Bytes
Versions: 10
Compression:
Stored size: 410 Bytes
Contents
# frozen_string_literal: true module BootstrapEmail module Converter class Color < Base def build each_node('*[class*=bg-]') do |node| next unless ['div'].include?(node.name) # only do automatic thing for div node.replace(template('table', classes: "#{node['class']} w-full", contents: node.delete('class') && node.inner_html)) end end end end end
Version data entries
10 entries across 10 versions & 1 rubygems