Class: ActiveMail::Components::Base
- Inherits:
-
Object
- Object
- ActiveMail::Components::Base
- Extended by:
- T::Helpers, T::Sig
- Defined in:
- lib/activemail/components/base.rb
Overview
Public extension point: subclass, implement #transform(node, inner), then register.
Direct Known Subclasses
BlockGrid, Button, Callout, Center, Columns, Container, Cta, HLine, InfoBox, Inky, Menu, MenuItem, Row, Spacer, Wrapper
Constant Summary collapse
- IGNORED_ON_PASSTHROUGH =
T.let( %w[class id href size large no-expander small target up size-sm size-lg style].freeze, T::Array[String] )
- TABLE_RESET =
Layout tables: presentation role (a11y) and zeroed legacy spacing.
'role="presentation" border="0" cellpadding="0" cellspacing="0"'
Instance Method Summary collapse
-
#initialize(core) ⇒ Base
constructor
A new instance of Base.
- #transform(node, inner) ⇒ Object
Constructor Details
#initialize(core) ⇒ Base
Returns a new instance of Base.
40 41 42 |
# File 'lib/activemail/components/base.rb', line 40 def initialize(core) @core = core end |
Instance Method Details
#transform(node, inner) ⇒ Object
45 |
# File 'lib/activemail/components/base.rb', line 45 def transform(node, inner); end |