Sha256: 5370379de9765cddabf6b77909be9129e9ac358adb71a33a4f6535f63972baed
Contents?: true
Size: 589 Bytes
Versions: 50
Compression:
Stored size: 589 Bytes
Contents
module Krikri ## # Concern for Krikri::XmlParsers with oai-style headers # @example # class MyOaiParser < Krikri::XmlParser # include Krikri::OaiParserHeaders # end module OaiParserHeaders extend ActiveSupport::Concern ## # @return [Krikri::Parser::ValueArray] a ValueArray containing the # header node as a `Value` of this parser class def header header_node = Nokogiri::XML(record.to_s).at_xpath('//xmlns:header') Krikri::Parser::ValueArray .new([self.class::Value.new(header_node, root.namespaces)]) end end end
Version data entries
50 entries across 50 versions & 1 rubygems