Sha256: 5f545fa7b0b5fd2fc30b9a3bf63b1cf607faae359f86d5e477a1b9356ee1f239
Contents?: true
Size: 408 Bytes
Versions: 3
Compression:
Stored size: 408 Bytes
Contents
# Copyright 2012 Twitter, Inc # http://www.apache.org/licenses/LICENSE-2.0 class TwitterCldr.PluralRules @runtime = `{{{runtime}}}` @data: -> TwitterCldr.get_data().PluralRules @all: (type = 'cardinal') -> return @data().names[type] @rule_for: (number, type = 'cardinal') -> try return eval(@data().rules[type])(number.toString(), @runtime) catch error return "other"
Version data entries
3 entries across 3 versions & 1 rubygems