Sha256: 43da738383ff9b09dc4e9ef3fc52ae79c0311392d736464820a9aceae255b431
Contents?: true
Size: 373 Bytes
Versions: 3
Compression:
Stored size: 373 Bytes
Contents
module RelatonOasis class DocumentType < RelatonBib::DocumentType DCTYPES = %w[specification memorandum resolution standard].freeze def initialize(type:, abbreviation: nil) chceck_type type super end def chceck_type(type) unless DCTYPES.include? type Util.warn "WARNING: invalid doctype: `#{type}`" end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
relaton-oasis-1.18.1 | lib/relaton_oasis/document_type.rb |
relaton-oasis-1.18.0 | lib/relaton_oasis/document_type.rb |
relaton-oasis-1.17.0 | lib/relaton_oasis/document_type.rb |