Class: Serega::SeregaValidations::Attribute::CheckOptMethod
- Inherits:
-
Object
- Object
- Serega::SeregaValidations::Attribute::CheckOptMethod
- Defined in:
- lib/serega/validations/attribute/check_opt_method.rb
Overview
Attribute ‘:method` option validator
Class Method Summary collapse
-
.call(opts, block = nil) ⇒ void
Checks attribute :method option.
Class Method Details
.call(opts, block = nil) ⇒ void
This method returns an undefined value.
Checks attribute :method option
20 21 22 23 24 25 |
# File 'lib/serega/validations/attribute/check_opt_method.rb', line 20 def call(opts, block = nil) return unless opts.key?(:method) check_usage_with_other_params(opts, block) Utils::CheckOptIsStringOrSymbol.call(opts, :method) end |