class ISO3166::Configuration
Experimental RBS support (using type sampling data from the type_fusion
project).
# sig/countries/configuration.rbs class ISO3166::Configuration def default_locales: () -> Array[Symbol] def initialize: () -> void end
def default_locales
Experimental RBS support (using type sampling data from the type_fusion
project).
def default_locales: () ->
This signature was generated using 8 samples from 1 application.
def default_locales locales = if Object.const_defined?('I18n') && I18n.respond_to?(:available_locales) I18n.available_locales.dup else [:en] end locales.empty? ? [:en] : locales end
def enable_currency_extension!
c.currency.name # => 'United States Dollar'
c.currency.iso_code # => 'USD'
c = ISO3166::Country['us']
@example
*WARNING* if you have a top level class named +Money+ you will conflict with this gem.
gem "money", "~> 6.9"
Please note that it requires you to add "money" gem to your gemfile.
Enables the integration with the {Money}[https://github.com/RubyMoney/money] gem
def enable_currency_extension! require 'countries/country/currency_methods' ISO3166::Country.prepend(ISO3166::CountryCurrencyMethods) end
def initialize
Experimental RBS support (using type sampling data from the type_fusion
project).
def initialize: () -> void
This signature was generated using 8 samples from 1 application.
def initialize @locales = default_locales @loaded_locales = [] end