Class: CommonCartridge::Elements::Lom::Title
- Inherits:
-
Object
- Object
- CommonCartridge::Elements::Lom::Title
- Includes:
- SAXMachine
- Defined in:
- lib/common_cartridge/elements/lom.rb
Instance Method Summary collapse
- #language ⇒ Object
- #to_s ⇒ Object
-
#value ⇒ Object
backward compatibility.
- #values ⇒ Object
Instance Method Details
#language ⇒ Object
19 |
# File 'lib/common_cartridge/elements/lom.rb', line 19 def language; strings.first.language; end |
#to_s ⇒ Object
27 |
# File 'lib/common_cartridge/elements/lom.rb', line 27 def to_s; string; end |
#value ⇒ Object
backward compatibility
18 |
# File 'lib/common_cartridge/elements/lom.rb', line 18 def value; strings.first.value; end |
#values ⇒ Object
21 22 23 24 25 |
# File 'lib/common_cartridge/elements/lom.rb', line 21 def values strings.map do |str| [str.language, str.value] end.to_h end |