Sha256: 49a3f7983edd666c78cf0582f3de67a51a8bdbec86ed40926d86436cf7292d03
Contents?: true
Size: 343 Bytes
Versions: 1
Compression:
Stored size: 343 Bytes
Contents
module RelatonW3c class DocumentType < RelatonBib::DocumentType DOCTYPES = %w[groupNote technicalReport].freeze def initialize(type:, abbreviation: nil) check_type type super end def check_type(type) unless DOCTYPES.include? type Util.warn "invalid doctype: `#{type}`" end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
relaton-w3c-1.19.0 | lib/relaton_w3c/document_type.rb |