Class: TwitterCldr::Localized::LocalizedSymbol
- Inherits:
-
LocalizedObject
- Object
- LocalizedObject
- TwitterCldr::Localized::LocalizedSymbol
- Defined in:
- lib/twitter_cldr/localized/localized_symbol.rb
Instance Attribute Summary
Attributes inherited from LocalizedObject
#base_obj, #formatter, #locale
Instance Method Summary collapse
- #as_language_code ⇒ Object
- #as_locale ⇒ Object
- #as_territory ⇒ Object
- #formatter_const ⇒ Object
- #is_rtl? ⇒ Boolean
Methods inherited from LocalizedObject
Constructor Details
This class inherits a constructor from TwitterCldr::Localized::LocalizedObject
Instance Method Details
#as_language_code ⇒ Object
10 11 12 |
# File 'lib/twitter_cldr/localized/localized_symbol.rb', line 10 def as_language_code TwitterCldr::Shared::Languages.from_code_for_locale(@base_obj, @locale) end |
#as_locale ⇒ Object
14 15 16 |
# File 'lib/twitter_cldr/localized/localized_symbol.rb', line 14 def as_locale TwitterCldr::Shared::Locale.parse(@base_obj.to_s) end |
#as_territory ⇒ Object
18 19 20 |
# File 'lib/twitter_cldr/localized/localized_symbol.rb', line 18 def as_territory TwitterCldr::Shared::Territories::from_territory_code_for_locale(@base_obj, @locale) end |
#formatter_const ⇒ Object
26 27 28 |
# File 'lib/twitter_cldr/localized/localized_symbol.rb', line 26 def formatter_const nil end |
#is_rtl? ⇒ Boolean
22 23 24 |
# File 'lib/twitter_cldr/localized/localized_symbol.rb', line 22 def is_rtl? TwitterCldr::Shared::Languages.is_rtl?(@base_obj) end |