Class: ICU4X::DisplayNames
- Inherits:
-
Object
- Object
- ICU4X::DisplayNames
- Defined in:
- lib/icu4x/yard_docs.rb
Overview
Provides localized display names for languages, regions, and scripts.
Instance Method Summary collapse
-
#initialize(locale, provider: nil, type:, style: :long, fallback: :code) ⇒ DisplayNames
constructor
Creates a new DisplayNames instance.
-
#of(code) ⇒ String?
Returns the display name for a code.
-
#resolved_options ⇒ Hash
Returns the resolved options for this instance.
Constructor Details
#initialize(locale, provider: nil, type:, style: :long, fallback: :code) ⇒ DisplayNames
Creates a new DisplayNames instance.
861 |
# File 'lib/icu4x/yard_docs.rb', line 861 def initialize(locale, provider: nil, type:, style: :long, fallback: :code); end |
Instance Method Details
#of(code) ⇒ String?
Returns the display name for a code.
874 |
# File 'lib/icu4x/yard_docs.rb', line 874 def of(code); end |
#resolved_options ⇒ Hash
Returns the resolved options for this instance.
884 |
# File 'lib/icu4x/yard_docs.rb', line 884 def ; end |