Sha256: 23c5abb878f9edc7007ab7ed3a13dbab8e67f02af7c96670b24c94b26b2c31ec

Contents?: true

Size: 399 Bytes

Versions: 4

Compression:

Stored size: 399 Bytes

Contents

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

class TwitterCldr.RBNFSubstitution
  constructor : (@type, @contents, @length) ->

  rule_set_reference : ->
    if @contents? and (item = @contents[0])?
      item.value.replace(/%/g, "") if item.type is 'rule'

  decimal_format : ->
    if @contents? and (item = @contents[0])?
      item.value if item.type is 'decimal'

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
twitter_cldr_js-3.3.0 lib/twitter_cldr/js/mustache/implementation/numbers/rbnf/substitution.coffee
twitter_cldr_js-3.2.0 lib/twitter_cldr/js/mustache/implementation/numbers/rbnf/substitution.coffee
twitter_cldr_js-3.1.1 lib/twitter_cldr/js/mustache/implementation/numbers/rbnf/substitution.coffee
twitter_cldr_js-3.1.0 lib/twitter_cldr/js/mustache/implementation/numbers/rbnf/substitution.coffee