Sha256: 3286e724ed34f9718985d8f02259fa32e20340d38b19a6ed5c943f450455d2ac
Contents?: true
Size: 954 Bytes
Versions: 7
Compression:
Stored size: 954 Bytes
Contents
require "relaton/processor" module RelatonCen class Processor < Relaton::Processor def initialize # rubocop:disable Lint/MissingSuper @short = :relaton_cen @prefix = "CEN" @defaultprefix = %r{^C?EN\s} @idtype = "CEN" end # @param code [String] # @param date [String, NilClass] year # @param opts [Hash] # @return [RelatonBib::BibliographicItem] def get(code, date, opts) ::RelatonCen::CenBibliography.get(code, date, opts) end # @param xml [String] # @return [RelatonBib::BibliographicItem] def from_xml(xml) ::RelatonCen::XMLParser.from_xml xml end # @param hash [Hash] # @return [RelatonBib::BibliographicItem] def hash_to_bib(hash) ::RelatonIsoBib::IsoBibliographicItem.from_hash hash end # Returns hash of XML grammar # @return [String] def grammar_hash @grammar_hash ||= ::RelatonIsoBib.grammar_hash end end end
Version data entries
7 entries across 7 versions & 1 rubygems