Sha256: fc7a4204a7be04bf55b9ad021c52b0c37ef257bcc8119f03d1139edb2443b062

Contents?: true

Size: 271 Bytes

Versions: 5

Compression:

Stored size: 271 Bytes

Contents

module BootstrapEmail
  module Component
    class Button < Base
      def build
        each_node('.btn') 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/button.rb
bootstrap-email-1.0.0.alpha2 lib/bootstrap-email/components/button.rb
bootstrap-email-1.0.0.alpha1.2 lib/bootstrap-email/components/button.rb
bootstrap-email-1.0.0.alpha1.1 lib/bootstrap-email/components/button.rb
bootstrap-email-1.0.0.alpha1 lib/bootstrap-email/components/button.rb