Class: RelatonIsoBib::DocumentType
- Inherits:
-
RelatonBib::DocumentType
- Object
- RelatonBib::DocumentType
- RelatonIsoBib::DocumentType
- Defined in:
- lib/relaton_iso_bib/document_type.rb
Constant Summary collapse
- DOCTYPES =
%w[ international-standard technical-specification technical-report publicly-available-specification international-workshop-agreement guide recommendation amendment technical-corrigendum directive committee-document addendum ].freeze
Instance Method Summary collapse
-
#check_doctype(type) ⇒ Object
Check if type is valid.
-
#initialize(type:, abbreviation: nil) ⇒ DocumentType
constructor
Create a new DocumentType object.
Constructor Details
#initialize(type:, abbreviation: nil) ⇒ DocumentType
Create a new DocumentType object.
15 16 17 18 |
# File 'lib/relaton_iso_bib/document_type.rb', line 15 def initialize(type:, abbreviation: nil) check_doctype type super end |