lib/gemoji-parser.rb
# Parses all unicode symbols within a string.
# - Block: performs all symbol transformations.
Parses all unicode symbols within a string.
Block: performs all symbol transformations.
Parses all unicode symbols within a string . Block : performs all symbol transformations .
def parse_unicode(text)
    text.gsub(unicode_regex) do |match|
      emoji = Emoji.find_by_unicode($1)
      block_given? && emoji ? yield(emoji) : match
    end
  end
def parse_unicode ( text ) text . gsub ( unicode_regex ) do | match | emoji = Emoji . find_by_unicode ( $1 ) block_given? && emoji ? yield ( emoji ) : match end end
Parses all unicode symbols within a string.
Parses all unicode symbols within a string .
text