Module: SitePrism::DSL::Validator Private

Defined in:
lib/site_prism/dsl/validator.rb

Overview

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

SitePrism::DSL::Validator

This is the new validator module which will check all DSL items against a whitelist for any entries which break specific rules

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#dsl_name_errorObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



13
14
15
# File 'lib/site_prism/dsl/validator.rb', line 13

def dsl_name_error
  @dsl_name_error
end

Instance Method Details

#name_invalid?(name) ⇒ Boolean

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns:

  • (Boolean)


15
16
17
18
19
20
# File 'lib/site_prism/dsl/validator.rb', line 15

def name_invalid?(name)
  prefix_invalid?(name) ||
    suffix_invalid?(name) ||
    characters_invalid?(name) ||
    blacklisted?(name)
end