Closed ronaldtse closed 1 year ago
@ronaldtse is it ok to have something like this:
Pubid::Iec::Identifier.config.types
=> [Pubid::Iec::Identifier::InternationalStandard, Pubid::Iec::Identifier::TechnicalReport, Pubid::Iec::Identifier::TechnicalSpecification, Pubid::Iec::Identifier::PubliclyAvailableSpecification, Pubid::Iec::Identifier::Guide, Pubid::Iec::Identifier::OperationalDocument, Pubid::Iec::Identifier::ComponentSpecification, Pubid::Iec::Identifier::SystemsReferenceDocument, Pubid::Iec::Identifier::ConformityAssessment, Pubid::Iec::Identifier::TestReportForm]
I would like to have a way of enumerating all document types, e.g.
https://github.com/metanorma/pubid-iec/blob/2985b8a4224899fd80cd42821be0f140c9534e59/lib/pubid/iec/parser.rb#L14-L19