Sha256: 36b050bdd0e65167b868b2092f00580c2fcdfcee97660fd8d922b98841daa24e
Contents?: true
Size: 878 Bytes
Versions: 1
Compression:
Stored size: 878 Bytes
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 end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
metacrunch-marcxml-2.0.0 | lib/metacrunch/marcxml.rb |