Class: GovukSchemas::DocumentTypes

Inherits:
Object
  • Object
show all
Defined in:
lib/govuk_schemas/document_types.rb

Class Method Summary collapse

Class Method Details

.valid_document_typesObject

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