Sha256: 5672334de5c1080b1dbc5804d81f7f6a10b81e1a0e1b29a97aa6a59b427e1c04
Contents?: true
Size: 917 Bytes
Versions: 1
Compression:
Stored size: 917 Bytes
Contents
require "relaton/processor" module RelatonEcma class Processor < Relaton::Processor def initialize @short = :relaton_ecma @prefix = "ECMA" @defaultprefix = /^ECMA(-|\s)/ @idtype = "ECMA" end # @param code [String] # @param date [String, NilClass] year # @param opts [Hash] # @return [RelatonEcma::BibliographicItem] def get(code, date, opts) ::RelatonEcma::EcmaBibliography.get(code, date, opts) end # @param xml [String] # @return [RelatonEcma::BibliographicItem] def from_xml(xml) ::RelatonEcma::XMLParser.from_xml xml end # @param hash [Hash] # @return [RelatonEcma::BibliographicItem] def hash_to_bib(hash) ::RelatonEcma::BibliographicItem.new hash end # Returns hash of XML grammar # @return [String] def grammar_hash @grammar_hash ||= ::RelatonEcma.grammar_hash end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
relaton-ecma-1.14.0 | lib/relaton_ecma/processor.rb |