Sha256: b531a4599b3fd7bbe2c91730ca3fcaa01fbdb8d900ff116dbc4ac7fc874338ce

Contents?: true

Size: 507 Bytes

Versions: 12

Compression:

Stored size: 507 Bytes

Contents

# frozen_string_literal: true

class Money
  class Config
    attr_accessor :default_currency, :legacy_json_format, :legacy_deprecations

    def legacy_default_currency!
      @default_currency ||= Money::NULL_CURRENCY
    end

    def legacy_deprecations!
      @legacy_deprecations = true
    end

    def legacy_json_format!
      @legacy_json_format = true
    end

    def initialize
      @default_currency = nil
      @legacy_json_format = false
      @legacy_deprecations = false
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
shopify-money-3.0.0 lib/money/config.rb
shopify-money-2.2.2 lib/money/config.rb
shopify-money-2.2.1 lib/money/config.rb
shopify-money-2.2.0 lib/money/config.rb
shopify-money-2.0.0 lib/money/config.rb
shopify-money-1.3.0 lib/money/config.rb
shopify-money-1.2.1 lib/money/config.rb
shopify-money-1.2.0 lib/money/config.rb
shopify-money-1.1.2 lib/money/config.rb
shopify-money-1.1.1 lib/money/config.rb
shopify-money-1.1.0 lib/money/config.rb
shopify-money-1.0.2.pre lib/money/config.rb