Class: ActiveMail::Components::Wrapper
- Extended by:
- T::Sig
- Defined in:
- lib/activemail/components/wrapper.rb
Constant Summary
Constants inherited from Base
Base::IGNORED_ON_PASSTHROUGH, Base::TABLE_RESET
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from ActiveMail::Components::Base
Instance Method Details
#transform(node, inner) ⇒ Object
12 13 14 15 16 17 18 |
# File 'lib/activemail/components/wrapper.rb', line 12 def transform(node, inner) attributes = combine_attributes(node, 'wrapper') [ %(<table #{attributes} #{TABLE_RESET} align="center"#{style_attribute(node, 'width:100%;')}><tbody><tr>), %(<td class="wrapper-inner">#{inner}</td></tr></tbody></table>) ].join end |