Sha256: 17ff1d0ac265200ed7e6a5d1f8ae6ef2d9be6a10c564d7198f87065559168426
Contents?: true
Size: 332 Bytes
Versions: 3
Compression:
Stored size: 332 Bytes
Contents
module ISO3166 # Extend Country class with support for timezones. Requires the {tzinfo}[https://github.com/tzinfo/tzinfo] gem # # gem 'tzinfo' # module TimezoneExtensions def timezones @tz_country ||= TZInfo::Country.get(alpha2) end end end ISO3166::Country.send(:include, ISO3166::TimezoneExtensions)
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
countries-4.2.3 | lib/countries/timezones.rb |
countries-4.2.2 | lib/countries/timezones.rb |
countries-4.2.1 | lib/countries/timezones.rb |