Class: ActiveMail::Components::Callout
- Extended by:
- T::Sig
- Defined in:
- lib/activemail/components/callout.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 19 20 |
# File 'lib/activemail/components/callout.rb', line 12 def transform(node, inner) classes = combine_classes(node, 'callout-inner') attributes = pass_through_attributes(node) [ %(<table #{attributes}class="callout" #{TABLE_RESET}#{style_attribute(node, 'width:100%;')}><tbody><tr>), %(<th class="#{classes}">#{inner}</th><th class="expander"></th>), '</tr></tbody></table>' ].join end |