Sha256: efd14b2aec7fdb753f12f6cf292f4f5a6143371699006b877c7c56fc0c2a3faa
Contents?: true
Size: 685 Bytes
Versions: 5
Compression:
Stored size: 685 Bytes
Contents
# Copyright 2012 Twitter, Inc # http://www.apache.org/licenses/LICENSE-2.0 class TwitterCldr.CharacterRange extends TwitterCldr.Component constructor : (@initial, @final) -> # Unfortunately, due to the ambiguity of having both character # ranges and set operations in the same syntax (which both use # the "-" operator and square brackets), we have to treat # CharacterRange as both a token and an operand. This type method # helps it behave like a token. @type = "character_range" super to_set : -> new TwitterCldr.RangeSet([new TwitterCldr.Range( @initial.to_set().to_full_array()[0], @final.to_set().to_full_array()[0]) ])
Version data entries
5 entries across 5 versions & 1 rubygems