Sha256: 4ac9e1f12bd39ed0eecf666b3d112c1c25e596daab2132fb86666080be4b1407
Contents?: true
Size: 387 Bytes
Versions: 11
Compression:
Stored size: 387 Bytes
Contents
module BootstrapEmail module Converter class Block < Base def build each_node('block, .to-table') do |node| # add .to-table if it's not already there class_name = node['class'].to_s.split << 'to-table' node.replace(template('table', classes: class_name.uniq.join(' '), contents: node.inner_html)) end end end end end
Version data entries
11 entries across 11 versions & 1 rubygems