Sha256: b028ca6bf226b9e1882cdc0f1be7e379a708dddb6dace04a99efa76660b6d3da

Contents?: true

Size: 529 Bytes

Versions: 20

Compression:

Stored size: 529 Bytes

Contents

# 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

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
serega-0.21.0 lib/serega/validations/attribute/check_opt_hide.rb
serega-0.20.1 lib/serega/validations/attribute/check_opt_hide.rb
serega-0.20.0 lib/serega/validations/attribute/check_opt_hide.rb
serega-0.19.0 lib/serega/validations/attribute/check_opt_hide.rb
serega-0.18.0 lib/serega/validations/attribute/check_opt_hide.rb
serega-0.17.0 lib/serega/validations/attribute/check_opt_hide.rb
serega-0.16.0 lib/serega/validations/attribute/check_opt_hide.rb
serega-0.15.0 lib/serega/validations/attribute/check_opt_hide.rb
serega-0.14.0 lib/serega/validations/attribute/check_opt_hide.rb
serega-0.12.0 lib/serega/validations/attribute/check_opt_hide.rb
serega-0.11.2 lib/serega/validations/attribute/check_opt_hide.rb
serega-0.11.1 lib/serega/validations/attribute/check_opt_hide.rb
serega-0.11.0 lib/serega/validations/attribute/check_opt_hide.rb
serega-0.10.0 lib/serega/validations/attribute/check_opt_hide.rb
serega-0.9.0 lib/serega/validations/attribute/check_opt_hide.rb
serega-0.8.3 lib/serega/validations/attribute/check_opt_hide.rb
serega-0.8.2 lib/serega/validations/attribute/check_opt_hide.rb
serega-0.8.1 lib/serega/validations/attribute/check_opt_hide.rb
serega-0.8.0 lib/serega/validations/attribute/check_opt_hide.rb
serega-0.7.0 lib/serega/validations/attribute/check_opt_hide.rb