Sha256: aa0de9fcb6d5bb502372c32d3e51362a1d31a6184289e2955b9df3656225fb6d

Contents?: true

Size: 283 Bytes

Versions: 6

Compression:

Stored size: 283 Bytes

Contents

# Copyright 2012 Twitter, Inc
# http://www.apache.org/licenses/LICENSE-2.0

TwitterCldr.PluralRules = class PluralRules
  @rules = `{{{rules}}}`

  @all: ->
    return @rules.keys

  @rule_for: (number) ->
    try
      return @rules.rule(number)
    catch error
      return "other"

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
twitter_cldr_js-1.0.0 lib/twitter_cldr/js/mustache/plurals/rules.coffee
twitter_cldr-1.8.0 js/lib/mustache/plurals/rules.coffee
twitter_cldr-1.7.0 js/lib/mustache/plurals/rules.coffee
twitter_cldr-1.6.2 js/lib/mustache/plurals/rules.coffee
twitter_cldr-1.6.1 js/lib/mustache/plurals/rules.coffee
twitter_cldr-1.6.0 js/lib/mustache/plurals/rules.coffee