Sha256: cd2f7576bc3ed544f209c5ed844278135a89f7086790c46dc7fc18dd67590e7e
Contents?: true
Size: 465 Bytes
Versions: 3
Compression:
Stored size: 465 Bytes
Contents
module RelatonUn class DocumentType < RelatonBib::DocumentType DOCTYPES = %w[ recommendation plenary addendum communication corrigendum reissue agenda budgetary sec-gen-notes expert-report resolution ].freeze def initialize(type:, abbreviation: nil) check_type type super end def check_type(type) unless DOCTYPES.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-un-1.18.1 | lib/relaton_un/document_type.rb |
relaton-un-1.18.0 | lib/relaton_un/document_type.rb |
relaton-un-1.17.0 | lib/relaton_un/document_type.rb |