Sha256: 74cebf9b3b447910712f52ea3cf92ca20ad8ba23b09298254ac87a69b9f7f764

Contents?: true

Size: 308 Bytes

Versions: 10

Compression:

Stored size: 308 Bytes

Contents

# frozen_string_literal: true

module BootstrapEmail
  module Converter
    class Badge < Base
      def build
        each_node('.badge') do |node|
          node.replace(template('table-left', classes: node['class'], contents: node.delete('class') && node.to_html))
        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/badge.rb
bootstrap-email-1.5.0 lib/bootstrap-email/converters/badge.rb
bootstrap-email-1.4.1 lib/bootstrap-email/converters/badge.rb
bootstrap-email-1.4.0 lib/bootstrap-email/converters/badge.rb
bootstrap-email-1.3.1 lib/bootstrap-email/converters/badge.rb
bootstrap-email-1.3.0 lib/bootstrap-email/converters/badge.rb
bootstrap-email-1.2.0 lib/bootstrap-email/converters/badge.rb
bootstrap-email-1.1.7 lib/bootstrap-email/converters/badge.rb
bootstrap-email-1.1.6 lib/bootstrap-email/converters/badge.rb
bootstrap-email-1.1.5 lib/bootstrap-email/converters/badge.rb