lib/countries/country/emoji.rb in countries-4.2.0 vs lib/countries/country/emoji.rb in countries-4.2.1
- old
+ new
@@ -30,9 +30,12 @@
'x' => 'π½',
'y' => 'πΎ',
'z' => 'πΏ'
}.freeze
+ # @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('')
end
end
end