Class: Serega::Validations::Attribute::CheckOptHide

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

Class Method Summary collapse

Class Method Details

.call(opts) ⇒ void

This method returns an undefined value.

Checks attribute :hide option

Parameters:

  • opts (Hash)

    Attribute options

Raises:

  • (Error)

    Error that option has invalid value



16
17
18
# File 'lib/serega/validations/attribute/check_opt_hide.rb', line 16

def self.call(opts)
  Utils::CheckOptIsBool.call(opts, :hide)
end