Sha256: 9ab1cdf7d4f329f1ca4d5eb733c5bca1b44da61c832485f8b15a48d0365753e8
Contents?: true
Size: 939 Bytes
Versions: 13
Compression:
Stored size: 939 Bytes
Contents
require "relaton/processor" module RelatonIho class Processor < Relaton::Processor attr_reader :idtype def initialize @short = :relaton_iho @prefix = "IHO" @defaultprefix = %r{^IHO\s} @idtype = "IHO" end # @param code [String] # @param date [String, NilClass] year # @param opts [Hash] # @return [RelatonIho::IhoBibliographicItem] def get(code, date, opts) ::RelatonIho::IhoBibliography.get(code, date, opts) end # @param xml [String] # @return [RelatonIho::IhoBibliographicItem] def from_xml(xml) ::RelatonIho::XMLParser.from_xml xml end # @param hash [Hash] # @return [RelatonIho::IhoBibliographicItem] def hash_to_bib(hash) ::RelatonIho::IhoBibliographicItem.new hash end # Returns hash of XML grammar # @return [String] def grammar_hash @grammar_hash ||= ::RelatonIho.grammar_hash end end end
Version data entries
13 entries across 13 versions & 1 rubygems