Sha256: 45911debcb4d786161c6085c84c327f0fc59deb4a3ac779040488f18c846fdd9
Contents?: true
Size: 431 Bytes
Versions: 3
Compression:
Stored size: 431 Bytes
Contents
module RelatonIho class DocumentType < RelatonBib::DocumentType DOCTYPES = %w[policy-and-procedures best-practices supporting-document report legal directives proposal standard].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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
relaton-iho-1.20.0 | lib/relaton_iho/document_type.rb |
relaton-iho-1.19.1 | lib/relaton_iho/document_type.rb |
relaton-iho-1.19.0 | lib/relaton_iho/document_type.rb |