Sha256: 8cb407b3a598ca3dc0575fcaefb0801dc824d2ba86a752c6c5c8acb5989a86b8

Contents?: true

Size: 605 Bytes

Versions: 2

Compression:

Stored size: 605 Bytes

Contents

# encoding: UTF-8

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

module TwitterCldr
  module Localized

    class LocalizedArray < LocalizedObject
      def code_points_to_string
        TwitterCldr::Utils::CodePoints.to_string(base_obj)
      end

      def sort
        TwitterCldr::Collation::Collator.new(locale).sort(base_obj).localize
      end

      def sort!
        TwitterCldr::Collation::Collator.new(locale).sort!(base_obj)
        self
      end

      def formatter_const
        nil
      end

      def to_a
        @base_obj.dup
      end
    end

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
twitter_cldr-1.8.1 lib/twitter_cldr/localized/localized_array.rb
twitter_cldr-1.8.0 lib/twitter_cldr/localized/localized_array.rb