Method: Mods::Date#encoding
- Defined in:
- lib/mods/date.rb
#encoding ⇒ String
The declared encoding of date (from the MODS @encoding attribute)
368 369 370 371 372 |
# File 'lib/mods/date.rb', line 368 def encoding return if xml.attr(:encoding)&.empty? xml.attr(:encoding)&.downcase end |