Class: ActiveMail::Components::HLine

Inherits:
Base
  • Object
show all
Extended by:
T::Sig
Defined in:
lib/activemail/components/h_line.rb

Constant Summary

Constants inherited from Base

Base::IGNORED_ON_PASSTHROUGH, Base::TABLE_RESET

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from ActiveMail::Components::Base

Instance Method Details

#transform(node, _inner) ⇒ Object



12
13
14
15
16
# File 'lib/activemail/components/h_line.rb', line 12

def transform(node, _inner)
  classes = combine_classes(node, 'h-line')
  attributes = pass_through_attributes(node)
  %(<table #{attributes}class="#{classes}" #{TABLE_RESET}#{style_attribute(node, 'width:100%;')}><tbody><tr><th>&nbsp;</th></tr></tbody></table>)
end