Sha256: 98a466820b82d06b1933a50b4f46ef45ffb5bd4b974f67dfcdea6b2447f7295d

Contents?: true

Size: 381 Bytes

Versions: 1

Compression:

Stored size: 381 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

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
amp_helper-1.0.0.pre.1 lib/amp_helper/configuration.rb