lib/gemoji-parser.rb
# Creates a regular expression for matching token symbols.
# - Options: rehash:boolean (currently unused)
Creates a regular expression for matching token symbols.
Options: rehash:boolean (currently unused)
Creates a regular expression for matching token symbols . Options : rehash : boolean ( currently unused )
def token_regex(opts={})
    return @token_regex if defined?(@token_regex)
    @token_pattern = ':([\w+-]+):'
    @token_regex = Regexp.new(@token_pattern)
  end
def token_regex ( opts = { } ) return @token_regex if defined? ( @token_regex ) @token_pattern = ':([\w+-]+):' @token_regex = Regexp . new ( @token_pattern ) end
Creates a regular expression for matching token symbols.
Creates a regular expression for matching token symbols .
opts