Sha256: 008f31be8f0ac7cd408497cb390fe986c96d2942ac1141ccd8d5a37c49a28070
Contents?: true
Size: 406 Bytes
Versions: 4
Compression:
Stored size: 406 Bytes
Contents
# Copyright 2012 Twitter, Inc # http://www.apache.org/licenses/LICENSE-2.0 class TwitterCldr.PatternTokenizer constructor : (@data_reader, @tokenizer) -> tokenize : (pattern) -> @tokenizer.tokenize(@expand(pattern)) expand : (pattern) -> if pattern instanceof Object result = {} for key, value of pattern result[key] = expand(value) result else pattern
Version data entries
4 entries across 4 versions & 1 rubygems