Sha256: 83a2010098adc03cc0caeafd6070adb9a28f15c0bf8ec7711adde4f0fef281d9
Contents?: true
Size: 617 Bytes
Versions: 3
Compression:
Stored size: 617 Bytes
Contents
module RelatonItu class DocumentType < RelatonBib::DocumentType TYPES = %w[ recommendation recommendation-supplement recommendation-amendment recommendation-corrigendum recommendation-errata recommendation-annex focus-group implementers-guide technical-paper technical-report joint-itu-iso-iec resolution service-publication handbook question ].freeze def initialize(type:, abbreviation: nil) check_type type super end def check_type(type) unless TYPES.include? type Util.warn "WARNING: Invalid doctype: `#{type}`" end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
relaton-itu-1.18.1 | lib/relaton_itu/document_type.rb |
relaton-itu-1.18.0 | lib/relaton_itu/document_type.rb |
relaton-itu-1.17.0 | lib/relaton_itu/document_type.rb |