Class: Serega::Validations::Attribute::CheckOptConst

Inherits:
Object
  • Object
show all
Defined in:
lib/serega/validations/attribute/check_opt_const.rb

Class Method Summary collapse

Class Method Details

.call(opts, block = nil) ⇒ Object



17
18
19
20
21
# File 'lib/serega/validations/attribute/check_opt_const.rb', line 17

def call(opts, block = nil)
  return unless opts.key?(:const)

  check_usage_with_other_params(opts, block)
end