lib/countries/country/emoji.rb in countries-4.2.3 vs lib/countries/country/emoji.rb in countries-5.0.0
- old
+ new
@@ -1,7 +1,6 @@
-#!/bin/env ruby
-# encoding: utf-8
+# frozen_string_literal: true
module ISO3166
module Emoji
CODE_POINTS = {
'a' => 'π¦',
@@ -34,9 +33,9 @@
# @return [String] the emoji flag for this country
#
# The emoji flag for this country, using Unicode Regional Indicator characters. e.g: "U+1F1FA U+1F1F8" for πΊπΈ
def emoji_flag
- alpha2.downcase.chars.map { |c| CODE_POINTS[c] }.join('')
+ alpha2.downcase.chars.map { |c| CODE_POINTS[c] }.join
end
end
end