Sha256: b468b0af050f149bdc5fea55019dc904cd67c371bc1b8e2835bd321940bc41b9
Contents?: true
Size: 1 KB
Versions: 8
Compression:
Stored size: 1 KB
Contents
require "relaton/processor" module RelatonBipm class Processor < Relaton::Processor attr_reader :idtype def initialize @short = :relaton_bipm @prefix = "BIPM" @defaultprefix = %r{^BIPM\s} @idtype = "BIPM" end # @param code [String] # @param date [String, NilClass] year # @param opts [Hash] # @return [RelatonBipm::BipmBibliographicItem] def get(code, date, opts) ::RelatonBipm::BipmBibliography.get(code, date, opts) end # @param xml [String] # @return [RelatonBipm::BipmBibliographicItem] def from_xml(xml) ::RelatonBipm::XMLParser.from_xml xml end # @param hash [Hash] # @return [RelatonBipm::BipmBibliographicItem] def hash_to_bib(hash) item_hash = ::RelatonBipm::HashConverter.hash_to_bib(hash) ::RelatonBipm::BipmBibliographicItem.new item_hash end # Returns hash of XML grammar # @return [String] def grammar_hash @grammar_hash ||= ::RelatonBipm.grammar_hash end end end
Version data entries
8 entries across 8 versions & 1 rubygems