Sha256: 9fa167b8062cfdf09916e99edb7ef0ef6a026ba1edbbd5d0271e0e7eea5665d4

Contents?: true

Size: 464 Bytes

Versions: 7

Compression:

Stored size: 464 Bytes

Contents

# frozen_string_literal: true

module ISO3166
  module LocalesMethods
    private

    def locales_to_load
      requested_locales - loaded_locales
    end

    def locales_to_remove
      loaded_locales - requested_locales
    end

    def requested_locales
      ISO3166.configuration.locales.map { |locale| locale.to_s.downcase }
    end

    def loaded_locales
      ISO3166.configuration.loaded_locales.map { |locale| locale.to_s.downcase }
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
countries-7.0.0 lib/countries/data/locales_methods.rb
countries-6.0.0 lib/countries/data/locales_methods.rb
countries-5.7.2 lib/countries/data/locales_methods.rb
countries-5.7.1 lib/countries/data/locales_methods.rb
countries-5.7.0 lib/countries/data/locales_methods.rb
countries-5.6.0 lib/countries/data/locales_methods.rb
countries-5.5.0 lib/countries/data/locales_methods.rb