class Libis::Metadata::Parser::DublinCoreParser
New style parsers and converters for metadata. New, not finished and untested.
Public Instance Methods
to_target(tree)
click to toggle source
# File lib/libis/metadata/parser/dublin_core_parser.rb, line 23 def to_target(tree) tree = tree[:DC] return nil unless tree result = "xml['#{tree[:namespace]}'].#{tree[:element]}(" tree[:attributes].each {|attribute| result += "'#{attribute[:name]}' => '#{attribute[:value]}'"} result + ').text' end