Sha256: d82632c990884fa845097ce4fb669ec1cd4bf9e17b6d3775b74de1b62ed7645f
Contents?: true
Size: 606 Bytes
Versions: 2
Compression:
Stored size: 606 Bytes
Contents
module RelatonOgc class DocumentType < RelatonBib::DocumentType DOCTYPES = %w[ abstract-specification-topic best-practice change-request-supporting-document community-practice community-standard discussion-paper engineering-report other policy reference-model release-notes standard user-guide white-paper test-suite draft-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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
relaton-ogc-1.20.0 | lib/relaton_ogc/document_type.rb |
relaton-ogc-1.19.0 | lib/relaton_ogc/document_type.rb |