Sha256: d05c512b739698aa87db063f53b2782f4f325287e43ff0114740209c53538e55
Contents?: true
Size: 545 Bytes
Versions: 7
Compression:
Stored size: 545 Bytes
Contents
module BootstrapEmail module Converter class Grid < Base def build each_node('.row') do |node| if node.at("./*[contains(@class, 'col-lg-')]") add_class(node, 'row-responsive') end node.replace(template('div', classes: node['class'], contents: template('table-to-tr', contents: node.inner_html))) end each_node('*[class*=col]') do |node| node.replace(template('td', classes: node['class'], contents: node.inner_html)) end end end end end
Version data entries
7 entries across 7 versions & 1 rubygems