lib/gemoji-parser.rb
# Finds an Emoji::Character instance for an unknown symbol type.
# - symbol: an <Emoji::Character>, or a unicode/token/emoticon string.
Finds an Emoji::Character instance for an unknown symbol type.
symbol: an , or a unicode/token/emoticon string.
Finds an Emoji :: Character instance for an unknown symbol type . symbol : an or a unicode / token / emoticon string .
def find(symbol)
    return symbol if (symbol.is_a?(Emoji::Character))
    symbol = emoticons[symbol].to_s if emoticons.has_key?(symbol)
    Emoji.find_by_alias(symbol) || Emoji.find_by_unicode(symbol) || nil
  end
def find ( symbol ) return symbol if ( symbol . is_a? ( Emoji :: Character ) ) symbol = emoticons [ symbol ] . to_s if emoticons . has_key? ( symbol ) Emoji . find_by_alias ( symbol ) || Emoji . find_by_unicode ( symbol ) || nil end
Finds an Emoji::Character instance for an unknown symbol type.
Finds an Emoji :: Character instance for an unknown symbol type .
symbol