Sha256: 1f81356c959e13e5efef8ad0b8e5d2323ca57420e094df84c4c96bae5b9c4c41

Contents?: true

Size: 343 Bytes

Versions: 10

Compression:

Stored size: 343 Bytes

Contents

# frozen_string_literal: true

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

10 entries across 10 versions & 1 rubygems

Version Path
bootstrap-email-1.5.1 lib/bootstrap-email/converters/hr.rb
bootstrap-email-1.5.0 lib/bootstrap-email/converters/hr.rb
bootstrap-email-1.4.1 lib/bootstrap-email/converters/hr.rb
bootstrap-email-1.4.0 lib/bootstrap-email/converters/hr.rb
bootstrap-email-1.3.1 lib/bootstrap-email/converters/hr.rb
bootstrap-email-1.3.0 lib/bootstrap-email/converters/hr.rb
bootstrap-email-1.2.0 lib/bootstrap-email/converters/hr.rb
bootstrap-email-1.1.7 lib/bootstrap-email/converters/hr.rb
bootstrap-email-1.1.6 lib/bootstrap-email/converters/hr.rb
bootstrap-email-1.1.5 lib/bootstrap-email/converters/hr.rb