Module: HtmlEmailCreator
- Defined in:
- lib/html_email_creator.rb,
lib/html_email_creator/email.rb,
lib/html_email_creator/helper.rb,
lib/html_email_creator/layout.rb,
lib/html_email_creator/filters.rb,
lib/html_email_creator/version.rb,
lib/html_email_creator/settings.rb,
lib/html_email_creator/callbacks.rb,
lib/html_email_creator/formatter.rb,
lib/html_email_creator/processor.rb,
lib/html_email_creator/extensions.rb,
lib/html_email_creator/information.rb,
lib/html_email_creator/email_creator.rb,
lib/html_email_creator/email_version.rb,
lib/html_email_creator/tags/include_tag.rb,
lib/html_email_creator/formatters/markdown.rb,
lib/html_email_creator/formatters/formatter.rb,
lib/html_email_creator/formatters/html_email.rb,
lib/html_email_creator/formatters/plain_text_email.rb,
lib/html_email_creator/formatters/unknown_formatter.rb
Defined Under Namespace
Modules: Filters, Formatters, Helper
Classes: Callbacks, Email, EmailCreator, EmailVersion, Extensions, Formatter, IncludeTag, Layout, Processor, Settings
Constant Summary
collapse
- VERSION =
"1.0.18"
- SUMMARY =
"An easy way to create HTML and plain text emails!"
- DESCRIPTION =
"An easy way to create HTML and plain text emails using Markdown markup and Liquid layouts."
Class Attribute Summary collapse
Class Method Summary
collapse
Class Attribute Details
.settings ⇒ Object
40
41
42
|
# File 'lib/html_email_creator.rb', line 40
def settings
@settings ||= read_settings(current_dir)
end
|
Class Method Details
.callbacks(current_settings = settings) ⇒ Object
36
37
38
|
# File 'lib/html_email_creator.rb', line 36
def callbacks(current_settings = settings)
Callbacks.new(current_settings)
end
|
.current_dir ⇒ Object
32
33
34
|
# File 'lib/html_email_creator.rb', line 32
def current_dir
Dir.pwd
end
|
.read_settings(dir) ⇒ Object
48
49
50
|
# File 'lib/html_email_creator.rb', line 48
def read_settings(dir)
Settings.new(dir)
end
|
.update_settings(from_email_dir = current_dir) ⇒ Object
44
45
46
|
# File 'lib/html_email_creator.rb', line 44
def update_settings(from_email_dir = current_dir)
@settings = read_settings(from_email_dir)
end
|