Sha256: 6515934a05c3beff9a6f688591c01a22894bd7caadd4f585a2ffef3e7638799f

Contents?: true

Size: 272 Bytes

Versions: 5

Compression:

Stored size: 272 Bytes

Contents

module BootstrapEmail
  module Component
    class Alert < Base
      def build
        each_node('.alert') do |node|
          node.replace(template('table', classes: node['class'], contents: node.delete('class') && node.to_html))
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
bootstrap-email-1.0.0.alpha2.1 lib/bootstrap-email/components/alert.rb
bootstrap-email-1.0.0.alpha2 lib/bootstrap-email/components/alert.rb
bootstrap-email-1.0.0.alpha1.2 lib/bootstrap-email/components/alert.rb
bootstrap-email-1.0.0.alpha1.1 lib/bootstrap-email/components/alert.rb
bootstrap-email-1.0.0.alpha1 lib/bootstrap-email/components/alert.rb