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
- #dsl_name_error ⇒ Object private
Instance Method Summary collapse
- #name_invalid?(name) ⇒ Boolean private
Instance Attribute Details
#dsl_name_error ⇒ Object
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.
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 |