Sha256: b88d16b88705d732c6fe5bfda80bc111b2becfb6407edf9be3a6cc6bd86d16a3

Contents?: true

Size: 309 Bytes

Versions: 3

Compression:

Stored size: 309 Bytes

Contents

# frozen_string_literal: true

module SolidusBrazilianAdaptations
  class Configuration
    attr_accessor :allow_cnpj
  end

  class << self
    def configuration
      @configuration ||= Configuration.new
    end

    alias config configuration

    def configure
      yield configuration
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
solidus_brazilian_adaptations-1.0.3 lib/solidus_brazilian_adaptations/configuration.rb
solidus_brazilian_adaptations-1.0.1 lib/solidus_brazilian_adaptations/configuration.rb
solidus_brazilian_adaptations-1.0.0 lib/solidus_brazilian_adaptations/configuration.rb