Sha256: 8548bd4cc1756538797c7f8bea02694ae5a052466d3f79f3103e99a518f80cbf

Contents?: true

Size: 307 Bytes

Versions: 6

Compression:

Stored size: 307 Bytes

Contents

module GovukSchemas
  class DocumentTypes
    # Return all of the document types on GOV.UK
    def self.valid_document_types
      @valid_document_types ||= begin
        filename = "#{GovukSchemas.content_schema_dir}/allowed_document_types.yml"
        YAML.load_file(filename)
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
govuk_schemas-5.0.4 lib/govuk_schemas/document_types.rb
govuk_schemas-5.0.3 lib/govuk_schemas/document_types.rb
govuk_schemas-5.0.0 lib/govuk_schemas/document_types.rb
govuk_schemas-4.7.0 lib/govuk_schemas/document_types.rb
govuk_schemas-4.6.0 lib/govuk_schemas/document_types.rb
govuk_schemas-4.5.0 lib/govuk_schemas/document_types.rb