Class: Serega::SeregaPlugins::Metadata::MetaAttribute::CheckOptValue
- Inherits:
-
Object
- Object
- Serega::SeregaPlugins::Metadata::MetaAttribute::CheckOptValue
- Defined in:
- lib/serega/plugins/metadata/validations/check_opt_value.rb
Overview
Validator for meta_attribute :value option
Class Method Summary collapse
-
.call(opts, block = nil) ⇒ void
Checks attribute :value option.
Class Method Details
.call(opts, block = nil) ⇒ void
This method returns an undefined value.
Checks attribute :value option
21 22 23 24 25 26 27 |
# File 'lib/serega/plugins/metadata/validations/check_opt_value.rb', line 21 def call(opts, block = nil) return unless opts.key?(:value) check_usage_with_other_params(opts, block) check_value(opts[:value]) end |