Class: ActiveMail::Components::Base

Inherits:
Object
  • Object
show all
Extended by:
T::Helpers, T::Sig
Defined in:
lib/activemail/components/base.rb

Overview

Public extension point: subclass, implement #transform(node, inner), then register.

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

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