Class: BootstrapEmail::Converter::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/bootstrap-email/converters/base.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(doc) ⇒ Base

Returns a new instance of Base.



5
6
7
8
# File 'lib/bootstrap-email/converters/base.rb', line 5

def initialize(doc)
  @doc = doc
  @cached_templates = {}
end

Instance Attribute Details

#docObject (readonly)

Returns the value of attribute doc.



4
5
6
# File 'lib/bootstrap-email/converters/base.rb', line 4

def doc
  @doc
end

Class Method Details

.build(doc) ⇒ Object



10
11
12
# File 'lib/bootstrap-email/converters/base.rb', line 10

def self.build(doc)
  new(doc).build
end