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