Sha256: c6d21eceb4462834611f9f4ec19ddb995e7696e45cb2fc2eeb16ddfb9fb1110f
Contents?: true
Size: 1.12 KB
Versions: 1
Compression:
Stored size: 1.12 KB
Contents
require "active_support" require "active_support/core_ext" require "htmlentities" require "ox" module Metacrunch require_relative "marcxml/version" require_relative "marcxml/parser" require_relative "marcxml/document" class << self # # Convenience method for Metacrunch::Marcxml.parse # # @return [Metacrunch::Marcxml::Document] the parsed {Metacrunch::Marcxml::Document} # @see Metacrunch::Marcxml#parse # def Marcxml(xml) Metacrunch::Marcxml.parse(xml) end end module Marcxml class << self # # Parses a MARCXML string into a {Metacrunch::Marcxml::Document}. # # @param xml [String] the MARCXML document as a string # @return [Metacrunch::Marcxml::Document] the parsed {Metacrunch::Marcxml::Document} # def parse(xml) Parser.new.parse(xml) end # # Convenience method for Metacrunch::Marcxml.parse # # @return [Metacrunch::Marcxml::Document] the parsed {Metacrunch::Marcxml::Document} # @see Metacrunch::Marcxml#parse # def [](xml) self.parse(xml) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
metacrunch-marcxml-3.0.0 | lib/metacrunch/marcxml.rb |