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.
Class Method Details
.call(path) ⇒ void
This method returns an undefined value.
Checks allowed characters. Allowed characters: “a-z”, “A-Z”, “0-9”, “_”, “-”, “~”.
26 27 28 |
# File 'lib/serega/plugins/metadata/validations/check_path.rb', line 26 def call(path) path.each { |attr_name| check_name(attr_name) } end |