Created
November 1, 2018 10:22
-
-
Save boardfish/3f807c81e74af39be3248f11b095dc8d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'simpleidn' | |
class Team | |
def initialize(name) | |
@name = SimpleIDN.to_ascii(name) | |
end | |
def name(present_emoji = false) | |
return SimpleIDN.to_unicode(@name) if present_emoji | |
@name | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment