Class: BootstrapEmail::Converter::Base
- Inherits:
-
Object
- Object
- BootstrapEmail::Converter::Base
- Defined in:
- lib/bootstrap-email/converters/base.rb
Direct Known Subclasses
AddMissingMetaTags, Alert, Align, Badge, BeautifyHTML, Block, Body, Button, Card, Color, Container, EnsureDoctype, ForceEncoding, Grid, HeadStyle, Hr, Margin, Padding, Paragraph, PreviewText, Spacer, Spacing, Stack, SupportUrlTokens, Table, VersionComment
Instance Attribute Summary collapse
-
#doc ⇒ Object
readonly
Returns the value of attribute doc.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(doc) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(doc) ⇒ Base
Returns a new instance of Base.
8 9 10 11 |
# File 'lib/bootstrap-email/converters/base.rb', line 8 def initialize(doc) @doc = doc @cached_templates = {} end |
Instance Attribute Details
#doc ⇒ Object (readonly)
Returns the value of attribute doc.
6 7 8 |
# File 'lib/bootstrap-email/converters/base.rb', line 6 def doc @doc end |
Class Method Details
.build(doc, *args) ⇒ Object
13 14 15 |
# File 'lib/bootstrap-email/converters/base.rb', line 13 def self.build(doc, *args) new(doc).build(*args) end |