Sha256: bfe36285fdde8dfd4e0045a66c3910f958ed458767a2d8ca75aedfb1097fc2da

Contents?: true

Size: 555 Bytes

Versions: 11

Compression:

Stored size: 555 Bytes

Contents

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(&proc)
      @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

11 entries across 11 versions & 1 rubygems

Version Path
bootstrap-email-1.1.4 lib/bootstrap-email/setup.rb
bootstrap-email-1.1.3 lib/bootstrap-email/setup.rb
bootstrap-email-1.1.2 lib/bootstrap-email/setup.rb
bootstrap-email-1.1.1 lib/bootstrap-email/setup.rb
bootstrap-email-1.1.0 lib/bootstrap-email/setup.rb
bootstrap-email-1.0.2 lib/bootstrap-email/setup.rb
bootstrap-email-1.0.1 lib/bootstrap-email/setup.rb
bootstrap-email-1.0.0 lib/bootstrap-email/setup.rb
bootstrap-email-1.0.0.alpha4 lib/bootstrap-email/setup.rb
bootstrap-email-1.0.0.alpha3.1 lib/bootstrap-email/setup.rb
bootstrap-email-1.0.0.alpha3 lib/bootstrap-email/setup.rb