lib/serega/validations/attribute/check_opt_hide.rb
# frozen_string_literal: true
class Serega
module SeregaValidations
module Attribute
#
# Attribute `:hide` option validator
#
class CheckOptHide
#
# Checks attribute :hide option
#
# @param opts [Hash] Attribute options
#
# @raise [SeregaError] SeregaError that option has invalid value
#
# @return [void]
#
def self.call(opts)
Utils::CheckOptIsBool.call(opts, :hide)
end
end
end
end
end