Sha256: f6683d6d19047ee8a831238fb1ebfc962c4973edb33d1e090c9db24f8d748e9a
Contents?: true
Size: 401 Bytes
Versions: 2
Compression:
Stored size: 401 Bytes
Contents
module BootstrapEmail module Component class Grid < Base def build each_node('.row') do |node| node.replace(template('table-to-tr', classes: node['class'], 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
bootstrap-email-1.0.0.alpha2.1 | lib/bootstrap-email/components/grid.rb |
bootstrap-email-1.0.0.alpha2 | lib/bootstrap-email/components/grid.rb |