Sha256: 285af65009b8a0d430a09b029e21aaab11b053002712c73cb75eafde5f83e2e8
Contents?: true
Size: 753 Bytes
Versions: 5
Compression:
Stored size: 753 Bytes
Contents
module RelatonBipm class DocumentType < RelatonBib::DocumentType DOCTYPES = %w[brochure mise-en-pratique rapport monographie guide meeting-report technical-report working-party-note strategy cipm-mra resolutions].freeze # # Initialize a document type object. # # @param [String] type document type # @param [String, nil] abbreviation abbreviation # def initialize(type:, abbreviation: nil) check_type type super end # # Check if document type is valid. # # @param [String] type document type # def check_type(type) # unless DOCTYPES.include? type # Util.warn "WARNING: invalid doctype: `#{type}`" # end end end end
Version data entries
5 entries across 5 versions & 1 rubygems