Class: GovukSchemas::DocumentTypes
- Inherits:
-
Object
- Object
- GovukSchemas::DocumentTypes
- Defined in:
- lib/govuk_schemas/document_types.rb
Class Method Summary collapse
-
.valid_document_types ⇒ Object
Return all of the document types on GOV.UK.
Class Method Details
.valid_document_types ⇒ Object
Return all of the document types on GOV.UK
4 5 6 7 8 9 |
# File 'lib/govuk_schemas/document_types.rb', line 4 def self.valid_document_types @valid_document_types ||= begin filename = "#{GovukSchemas.content_schema_dir}/allowed_document_types.yml" YAML.load_file(filename) end end |