Sha256: 96c832c3ce1eb71a3eeea67a348209213d039dbd940c0a9002c48b3c741fd006

Contents?: true

Size: 456 Bytes

Versions: 3

Compression:

Stored size: 456 Bytes

Contents

module AmpHelper
  class << self
    attr_accessor :configuration
  end

  def self.configure
    self.configuration ||= Configuration.new
    yield(configuration)
  end

  class Configuration
    attr_accessor :enable_amp_image, :format_2x, :enable_amp_link,
                  :confirm_cache_exist

    def initialize
      @enable_amp_image = true
      @format_2x = nil
      @enable_amp_link = true
      @confirm_cache_exist = false
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
amp_helper-1.0.0.pre.4 lib/amp_helper/configuration.rb
amp_helper-1.0.0.pre.3 lib/amp_helper/configuration.rb
amp_helper-1.0.0.pre.2 lib/amp_helper/configuration.rb