Sha256: a19bcc39e95e933f84e5b5e7ea9b996e05480be2fd3d95aaaf2bd6cf8aac5b93
Contents?: true
Size: 440 Bytes
Versions: 2
Compression:
Stored size: 440 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 "WARNING: invalid doctype: `#{type}`" end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
relaton-iho-1.18.0 | lib/relaton_iho/document_type.rb |
relaton-iho-1.17.0 | lib/relaton_iho/document_type.rb |