Class: Lang::Subtags::Variant
- Defined in:
- lib/lang/subtags/variant.rb
Overview
Holds data about variant subtags.
Instance Attribute Summary collapse
-
#prefixes ⇒ Object
readonly
Returns the value of attribute prefixes.
Attributes inherited from Entry
#added_at, #comments, #deprecated_at, #name, #preferred_value
Instance Method Summary collapse
Methods inherited from Entry
#add_description, #deprecated?, #description, entries, inherited, subclasses
Instance Attribute Details
#prefixes ⇒ Object (readonly)
Returns the value of attribute prefixes.
6 7 8 |
# File 'lib/lang/subtags/variant.rb', line 6 def prefixes @prefixes end |
Instance Method Details
#add_prefix(prefix) ⇒ Object
8 9 10 11 |
# File 'lib/lang/subtags/variant.rb', line 8 def add_prefix(prefix) @prefixes ||= [] @prefixes << prefix end |