Sha256: a01b793f05f2a21793e18b639d3b6aaa6d650a2fa936ac20113590c56543e40b

Contents?: true

Size: 579 Bytes

Versions: 3

Compression:

Stored size: 579 Bytes

Contents

# frozen_string_literal: true

module BootstrapEmail
  class << self
    def config
      @config ||= BootstrapEmail::Config.new
      @config
    end

    def load_options(options)
      @config ||= BootstrapEmail::Config.new
      @config.load_options(options)
      @config
    end

    def configure
      @config ||= BootstrapEmail::Config.new
      yield @config
    end

    def reset_config!
      remove_instance_variable :@config if defined?(@config)
    end

    def clear_sass_cache!
      FileUtils.rm_rf(BootstrapEmail.config.sass_cache_location)
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
bootstrap-email-1.1.7 lib/bootstrap-email/setup.rb
bootstrap-email-1.1.6 lib/bootstrap-email/setup.rb
bootstrap-email-1.1.5 lib/bootstrap-email/setup.rb