Sha256: ac380e489c474764034c9d47d576814ba93a00c058f8d78317072e305bd9a4c2

Contents?: true

Size: 442 Bytes

Versions: 11

Compression:

Stored size: 442 Bytes

Contents

# encoding: UTF-8

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

class Symbol
  def localize(locale = TwitterCldr.get_locale)
    TwitterCldr::LocalizedSymbol.new(self, locale)
  end
end

module TwitterCldr
  class LocalizedSymbol < LocalizedObject
    def as_language_code
      TwitterCldr::Shared::Languages.from_code_for_locale(@base_obj, @locale)
    end

    def formatter_const
      nil
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
twitter_cldr-1.7.0 lib/twitter_cldr/core_ext/symbol.rb
twitter_cldr-1.6.2 lib/twitter_cldr/core_ext/symbol.rb
twitter_cldr-1.6.1 lib/twitter_cldr/core_ext/symbol.rb
twitter_cldr-1.6.0 lib/twitter_cldr/core_ext/symbol.rb
twitter_cldr-1.5.0 lib/twitter_cldr/core_ext/symbol.rb
twitter_cldr-1.4.1 lib/twitter_cldr/core_ext/symbol.rb
twitter_cldr-1.4.0 lib/twitter_cldr/core_ext/symbol.rb
twitter_cldr-1.3.6 lib/twitter_cldr/core_ext/symbol.rb
twitter_cldr-1.3.0 lib/twitter_cldr/core_ext/symbol.rb
twitter_cldr-1.2.0 lib/twitter_cldr/core_ext/symbol.rb
twitter_cldr-1.1.0 lib/ext/strings/symbol.rb