Module: GovukSchemas
- Defined in:
- lib/govuk_schemas.rb,
lib/govuk_schemas/schema.rb,
lib/govuk_schemas/example.rb,
lib/govuk_schemas/version.rb,
lib/govuk_schemas/validator.rb,
lib/govuk_schemas/document_types.rb,
lib/govuk_schemas/random_example.rb,
lib/govuk_schemas/rspec_matchers.rb,
lib/govuk_schemas/assert_matchers.rb,
lib/govuk_schemas/random_schema_generator.rb,
lib/govuk_schemas/random_content_generator.rb
Defined Under Namespace
Modules: AssertMatchers, RSpecMatchers
Classes: DocumentTypes, Example, RandomExample, Schema, Validator
Class Method Summary
collapse
Class Method Details
.content_schema_dir ⇒ Object
12
13
14
|
# File 'lib/govuk_schemas.rb', line 12
def self.content_schema_dir
@content_schema_dir ||= ENV.fetch("GOVUK_CONTENT_SCHEMAS_PATH", "../publishing-api/content_schemas")
end
|
.content_schema_dir=(path_to_schemas) ⇒ Object
8
9
10
|
# File 'lib/govuk_schemas.rb', line 8
def self.content_schema_dir=(path_to_schemas)
@content_schema_dir = path_to_schemas
end
|