Sha256: 3398e8cd902a1e94224bb45294a43bf5505fd1fdb8f511e657da8a6c1627987f
Contents?: true
Size: 1009 Bytes
Versions: 10
Compression:
Stored size: 1009 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) item_hash = ::RelatonIho::HashConverter.hash_to_bib(hash) ::RelatonIho::IhoBibliographicItem.new item_hash end # Returns hash of XML grammar # @return [String] def grammar_hash @grammar_hash ||= ::RelatonIeee.grammar_hash end end end
Version data entries
10 entries across 10 versions & 2 rubygems