Sha256: 39df20aab33b23cf8a112d3527a43f587fdbfbbb43999eb1806e7fd105b0fcaf
Contents?: true
Size: 669 Bytes
Versions: 5
Compression:
Stored size: 669 Bytes
Contents
module RelatonW3c class W3cBibliographicItem < RelatonBib::BibliographicItem TYPES = %w[ candidateRecommendation groupNote proposedEditedRecommendation proposedRecommendation recommendation retired workingDraft technicalReport ].freeze # @param doctype [String] def initialize(**args) if args[:doctype] && !TYPES.include?(args[:doctype]) warn "[relaton-w3c] invalid document type: #{args[:doctype]}" end super end # # Fetch flavor schema version # # @return [String] flavor schema version # def ext_schema @ext_schema ||= schema_versions["relaton-model-w3c"] end end end
Version data entries
5 entries across 5 versions & 1 rubygems