Class: Unitsdb::LocalizedString
- Inherits:
-
Lutaml::Model::Serializable
- Object
- Lutaml::Model::Serializable
- Unitsdb::LocalizedString
- Defined in:
- lib/unitsdb/localized_string.rb
Overview
Represents a localized string with a language tag
Instance Method Summary collapse
Instance Method Details
#downcase ⇒ Object
13 14 15 |
# File 'lib/unitsdb/localized_string.rb', line 13 def downcase value&.downcase end |
#to_s ⇒ Object
9 10 11 |
# File 'lib/unitsdb/localized_string.rb', line 9 def to_s "#{value} (#{lang})" end |