lib/gutenberg_rdf/rdf/media.rb in gutenberg_rdf-0.4.0 vs lib/gutenberg_rdf/rdf/media.rb in gutenberg_rdf-1.0.0
- old
+ new
@@ -21,17 +21,16 @@
def modified
DateTime.parse(xml.elements['dcterms:modified'].text + '-07:00')
end
- private
+ private
def datatype
parts = xml.elements['dcterms:format/rdf:Description/rdf:value'].text.split(/; */)
t = parts.shift
e = parts.join(';').sub('charset=', '')
{type: t, encoding: e}
end
-
end
end
end