Sha256: 7d623f97139b1f7355f3118d86eb0411e9652b35f8e032dcaf2b2c51255359cf
Contents?: true
Size: 403 Bytes
Versions: 1
Compression:
Stored size: 403 Bytes
Contents
# Copyright 2012 Twitter, Inc # http://www.apache.org/licenses/LICENSE-2.0 class TwitterCldr.PluralRules @runtime = `{{{runtime}}}` @data: -> TwitterCldr.get_data()[@name] @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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
twitter_cldr_js-3.1.0 | lib/twitter_cldr/js/mustache/implementation/plurals/rules.coffee |