Sha256: dc7a4d17beb58c50a03968dfc7473ec65a6428ffa9fb586cb72998cb069bccbb
Contents?: true
Size: 1.27 KB
Versions: 4
Compression:
Stored size: 1.27 KB
Contents
def require_all(path) glob = File.join(File.dirname(__FILE__), path, '*.rb') Dir[glob].each do |f| require f end end require 'fileutils' require_all 'html_email_creator/tags' require_all 'html_email_creator/formatters' module HtmlEmailCreator autoload :Email, "html_email_creator/email" autoload :EmailCreator, "html_email_creator/email_creator" autoload :EmailVersion, "html_email_creator/email_version" autoload :Extensions, "html_email_creator/extensions" autoload :Filters, 'html_email_creator/filters' autoload :Formatter, 'html_email_creator/formatter' autoload :Helper, 'html_email_creator/helper' autoload :Layout, 'html_email_creator/layout' autoload :Markdown, 'html_email_creator/markdown' autoload :Processor, 'html_email_creator/processor' autoload :Renderer, 'html_email_creator/renderer' autoload :Settings, 'html_email_creator/settings' autoload :Version, 'html_email_creator/version' class << self attr_writer :settings def current_dir Dir.pwd end def settings @settings ||= read_settings(current_dir) end def update_settings(from_email_dir = current_dir) @settings = read_settings(from_email_dir) end def read_settings(dir) Settings.new(dir) end end end
Version data entries
4 entries across 4 versions & 1 rubygems