Sha256: 3b62546aa0704fa569d3235551fb7a8b6cdd6527273e1744341f1a5994a0b93a
Contents?: true
Size: 744 Bytes
Versions: 10
Compression:
Stored size: 744 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 "invalid doctype: `#{type}`" # end end end end
Version data entries
10 entries across 10 versions & 1 rubygems