Class: Serega::Validations::Attribute::CheckOptKey
- Inherits:
-
Object
- Object
- Serega::Validations::Attribute::CheckOptKey
- Defined in:
- lib/serega/validations/attribute/check_opt_key.rb
Class Method Summary collapse
Class Method Details
.call(opts, block = nil) ⇒ Object
17 18 19 20 21 22 |
# File 'lib/serega/validations/attribute/check_opt_key.rb', line 17 def call(opts, block = nil) return unless opts.key?(:key) check_usage_with_other_params(opts, block) Utils::CheckOptIsStringOrSymbol.call(opts, :key) end |