Sha256: 50299fc11e5a8d516d0d8ab67340f9d151d2c55f9627ff12e165b6b228cddc1a

Contents?: true

Size: 334 Bytes

Versions: 9

Compression:

Stored size: 334 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}/lib/govuk_content_schemas/allowed_document_types.yml"
        YAML.load_file(filename)
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
govuk_schemas-4.4.1 lib/govuk_schemas/document_types.rb
govuk_schemas-4.4.0 lib/govuk_schemas/document_types.rb
govuk_schemas-4.3.0 lib/govuk_schemas/document_types.rb
govuk_schemas-4.2.0 lib/govuk_schemas/document_types.rb
govuk_schemas-4.1.1 lib/govuk_schemas/document_types.rb
govuk_schemas-4.1.0 lib/govuk_schemas/document_types.rb
govuk_schemas-4.0.0 lib/govuk_schemas/document_types.rb
govuk_schemas-3.3.0 lib/govuk_schemas/document_types.rb
govuk_schemas-3.2.0 lib/govuk_schemas/document_types.rb