Class: Serega::SeregaPlugins::Metadata::MetaAttribute::CheckPath
- Inherits:
-
Object
- Object
- Serega::SeregaPlugins::Metadata::MetaAttribute::CheckPath
- Defined in:
- lib/serega/plugins/metadata/validations/check_path.rb
Overview
Validator for meta_attribute :path parameter
Class Method Summary collapse
-
.call(path) ⇒ void
Checks allowed characters in specified metadata path parts.
Class Method Details
.call(path) ⇒ void
This method returns an undefined value.
Checks allowed characters in specified metadata path parts. Globally allowed characters: "a-z", "A-Z", "0-9". Minus and low line "-", "_" also allowed except as the first or last character.
27 28 29 |
# File 'lib/serega/plugins/metadata/validations/check_path.rb', line 27 def call(path) path.each { |attr_name| check_name(attr_name) } end |