Method: Mods::Date#encoding

Defined in:
lib/mods/date.rb

#encodingString

The declared encoding of date (from the MODS @encoding attribute)

Returns:

  • (String)


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