Class: Unitsdb::LocalizedString

Inherits:
Lutaml::Model::Serializable
  • Object
show all
Defined in:
lib/unitsdb/localized_string.rb

Overview

Represents a localized string with a language tag

Instance Method Summary collapse

Instance Method Details

#downcaseObject



13
14
15
# File 'lib/unitsdb/localized_string.rb', line 13

def downcase
  value&.downcase
end

#to_sObject



9
10
11
# File 'lib/unitsdb/localized_string.rb', line 9

def to_s
  "#{value} (#{lang})"
end