Sha256: 92aeed5fa65f69efe7e840f0ee32e1293ce5dc257fd1cf3df61c6582def1c3c1

Contents?: true

Size: 312 Bytes

Versions: 11

Compression:

Stored size: 312 Bytes

Contents

module BootstrapEmail
  module Converter
    class Hr < Base
      def build
        each_node('hr') do |node|
          default_margin = margin?(node) ? '' : 'my-5'
          node.replace(template('table', classes: "#{default_margin} hr #{node['class']}", contents: ''))
        end
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
bootstrap-email-1.1.4 lib/bootstrap-email/converters/hr.rb
bootstrap-email-1.1.3 lib/bootstrap-email/converters/hr.rb
bootstrap-email-1.1.2 lib/bootstrap-email/converters/hr.rb
bootstrap-email-1.1.1 lib/bootstrap-email/converters/hr.rb
bootstrap-email-1.1.0 lib/bootstrap-email/converters/hr.rb
bootstrap-email-1.0.2 lib/bootstrap-email/converters/hr.rb
bootstrap-email-1.0.1 lib/bootstrap-email/converters/hr.rb
bootstrap-email-1.0.0 lib/bootstrap-email/converters/hr.rb
bootstrap-email-1.0.0.alpha4 lib/bootstrap-email/converters/hr.rb
bootstrap-email-1.0.0.alpha3.1 lib/bootstrap-email/converters/hr.rb
bootstrap-email-1.0.0.alpha3 lib/bootstrap-email/converters/hr.rb