Class: HtmlEmailCreator::Callbacks

Inherits:
Object
  • Object
show all
Defined in:
lib/html_email_creator/callbacks.rb

Overview

Mail creation consists of many steps. This is a place where you coordinate additional steps. In the future you may even register callbacks to your plugins if that feture is needed.

Instance Method Summary collapse

Constructor Details

#initialize(settings = HtmlEmailCreator.settings) ⇒ Callbacks

Returns a new instance of Callbacks.



7
8
9
# File 'lib/html_email_creator/callbacks.rb', line 7

def initialize(settings = HtmlEmailCreator.settings)
  @settings = settings
end

Instance Method Details

#html_created(html) ⇒ Object



11
12
13
# File 'lib/html_email_creator/callbacks.rb', line 11

def html_created(html)
  HtmlEmailCreator::Extensions.new.process_html(html, *@settings.built_in_extensions)
end