Sha256: fc52f18a78df8a5f9f02d46cbd99bdf1fa9768fbd802d62b0d2acf1956b594ee

Contents?: true

Size: 470 Bytes

Versions: 7

Compression:

Stored size: 470 Bytes

Contents

# frozen_string_literal: true

class Serega
  module SeregaValidations
    module Attribute
      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

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
serega-0.6.1 lib/serega/validations/attribute/check_opt_hide.rb
serega-0.6.0 lib/serega/validations/attribute/check_opt_hide.rb
serega-0.5.2 lib/serega/validations/attribute/check_opt_hide.rb
serega-0.5.1 lib/serega/validations/attribute/check_opt_hide.rb
serega-0.5.0 lib/serega/validations/attribute/check_opt_hide.rb
serega-0.4.0 lib/serega/validations/attribute/check_opt_hide.rb
serega-0.3.0 lib/serega/validations/attribute/check_opt_hide.rb