Class: ICU4X::ListFormat
- Inherits:
-
Object
- Object
- ICU4X::ListFormat
- Defined in:
- lib/icu4x/yard_docs.rb
Overview
Formats lists of items according to locale-specific conventions.
Instance Method Summary collapse
-
#format(list) ⇒ String
Formats a list of strings.
-
#format_to_parts(list) ⇒ Array<FormattedPart>
Formats a list of strings and returns an array of parts.
-
#initialize(locale, provider: nil, type: :conjunction, style: :long) ⇒ ListFormat
constructor
Creates a new ListFormat instance.
-
#resolved_options ⇒ Hash
Returns the resolved options for this instance.
Constructor Details
#initialize(locale, provider: nil, type: :conjunction, style: :long) ⇒ ListFormat
Creates a new ListFormat instance.
744 |
# File 'lib/icu4x/yard_docs.rb', line 744 def initialize(locale, provider: nil, type: :conjunction, style: :long); end |
Instance Method Details
#format(list) ⇒ String
Formats a list of strings.
751 |
# File 'lib/icu4x/yard_docs.rb', line 751 def format(list); end |
#format_to_parts(list) ⇒ Array<FormattedPart>
Formats a list of strings and returns an array of parts.
Each part contains a type and value, allowing for custom styling or processing of individual components.
774 |
# File 'lib/icu4x/yard_docs.rb', line 774 def format_to_parts(list); end |
#resolved_options ⇒ Hash
Returns the resolved options for this instance.
783 |
# File 'lib/icu4x/yard_docs.rb', line 783 def ; end |