Sha256: 6bcddfd070f67c89ee5ea6f931a699f722cc9b10d5ca0b27e3f298bfef22e81f

Contents?: true

Size: 430 Bytes

Versions: 7

Compression:

Stored size: 430 Bytes

Contents

# frozen_string_literal: true

module BootstrapEmail
  class << self
    def static_config
      @static_config ||= BootstrapEmail::ConfigStore.new
    end

    def configure
      yield static_config
    end

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

    def clear_sass_cache!
      FileUtils.rm_rf(BootstrapEmail::Config.new.sass_cache_location)
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
bootstrap-email-1.5.1 lib/bootstrap-email/setup.rb
bootstrap-email-1.5.0 lib/bootstrap-email/setup.rb
bootstrap-email-1.4.1 lib/bootstrap-email/setup.rb
bootstrap-email-1.4.0 lib/bootstrap-email/setup.rb
bootstrap-email-1.3.1 lib/bootstrap-email/setup.rb
bootstrap-email-1.3.0 lib/bootstrap-email/setup.rb
bootstrap-email-1.2.0 lib/bootstrap-email/setup.rb