Class: Serega::SeregaValidations::Attribute::CheckOptConst
- Inherits:
-
Object
- Object
- Serega::SeregaValidations::Attribute::CheckOptConst
- Defined in:
- lib/serega/validations/attribute/check_opt_const.rb
Overview
Attribute :const option validator
Class Method Summary collapse
-
.call(opts) ⇒ void
Checks attribute :const option.
Class Method Details
.call(opts) ⇒ void
This method returns an undefined value.
Checks attribute :const option
23 24 25 26 27 |
# File 'lib/serega/validations/attribute/check_opt_const.rb', line 23 def call(opts) return unless opts.key?(:const) check_usage_with_other_params(opts) end |