Sha256: a8d1f78d6eb0731123399e24b5cb67fc9895f32a807a5b3cd63aa3d6eff85389

Contents?: true

Size: 374 Bytes

Versions: 1

Compression:

Stored size: 374 Bytes

Contents

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

class TwitterCldr.Range
  constructor : (@first, @last) ->
    if @is_numeric()
      @size = @last - @first + 1

  to_array : ->
    [@first..@last]

  includes : (number) ->
    number >= @first and number <= @last

  is_numeric : ->
    (!(@first instanceof Array) and !(@last instanceof Array))

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
twitter_cldr_js-2.4.0 lib/twitter_cldr/js/mustache/utils/range.coffee