Class: ActiveMail::Components::InfoBox
- Extended by:
- T::Sig
- Defined in:
- lib/activemail/components/info_box.rb
Overview
Colors read from tokens at transform time (runtime config), not load-time constants.
Constant Summary
Constants inherited from Base
Base::BUTTON_PADDING, 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
13 14 15 16 17 18 19 20 |
# File 'lib/activemail/components/info_box.rb', line 13 def transform(node, inner) classes = combine_classes(node, 'info-box') [ %(<table class="#{classes}" #{TABLE_RESET} style="width:100%;"><tbody><tr>), %(<td style="#{cell_style}">#{inner}</td>), '</tr></tbody></table>' ].join end |